From: David ‘Bombe’ Roden Date: Thu, 28 Oct 2010 09:18:54 +0000 (+0200) Subject: Fix likes only containing the likes of local Sones. X-Git-Tag: 0.1-RC2~5 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5a80cf3b9a782dc79e4e040be74f330a4d92b78f;p=Sone.git Fix likes only containing the likes of local Sones. --- 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 --- 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 */ - public Set getLikes(final Post post) { - return Filters.filteredSet(getSones(), new Filter() { + public Collection getLikes(final Post post) { + return Filters.filteredCollection(getKnownSones(), new Filter() { @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 */ - public Set getLikes(final Reply reply) { - return Filters.filteredSet(getSones(), new Filter() { + public Collection getLikes(final Reply reply) { + return Filters.filteredCollection(getKnownSones(), new Filter() { @Override public boolean filterObject(Sone sone) {