projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix likes only containing the likes of local Sones.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
Core.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/Core.java
b/src/main/java/net/pterodactylus/sone/core/Core.java
index
00aefe2
..
accfa1e
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/Core.java
+++ b/
src/main/java/net/pterodactylus/sone/core/Core.java
@@
-643,8
+643,8
@@
public class Core extends AbstractService {
* The post to check for
* @return All Sones that like the post
*/
* The post to check for
* @return All Sones that like the post
*/
- public
Set
<Sone> getLikes(final Post post) {
- return Filters.filtered
Set(get
Sones(), new Filter<Sone>() {
+ public
Collection
<Sone> getLikes(final Post post) {
+ return Filters.filtered
Collection(getKnown
Sones(), new Filter<Sone>() {
@Override
public boolean filterObject(Sone sone) {
@Override
public boolean filterObject(Sone sone) {
@@
-660,8
+660,8
@@
public class Core extends AbstractService {
* The reply to check for
* @return All Sones that like the reply
*/
* The reply to check for
* @return All Sones that like the reply
*/
- public
Set
<Sone> getLikes(final Reply reply) {
- return Filters.filtered
Set(get
Sones(), new Filter<Sone>() {
+ public
Collection
<Sone> getLikes(final Reply reply) {
+ return Filters.filtered
Collection(getKnown
Sones(), new Filter<Sone>() {
@Override
public boolean filterObject(Sone sone) {
@Override
public boolean filterObject(Sone sone) {