From: David ‘Bombe’ Roden Date: Tue, 29 Oct 2013 06:09:54 +0000 (+0100) Subject: Implement local Sone filter by using isLocal(). X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f3de529dac23aff1f2378930cc5b68f43450a6b3;p=Sone.git Implement local Sone filter by using isLocal(). --- diff --git a/src/main/java/net/pterodactylus/sone/data/Sone.java b/src/main/java/net/pterodactylus/sone/data/Sone.java index a8830f8..93e05e8 100644 --- a/src/main/java/net/pterodactylus/sone/data/Sone.java +++ b/src/main/java/net/pterodactylus/sone/data/Sone.java @@ -34,7 +34,6 @@ import net.pterodactylus.sone.database.AlbumBuilder; import net.pterodactylus.sone.database.PostBuilder; import net.pterodactylus.sone.database.PostReplyBuilder; import net.pterodactylus.sone.freenet.wot.Identity; -import net.pterodactylus.sone.freenet.wot.OwnIdentity; import net.pterodactylus.sone.template.SoneAccessor; import com.google.common.base.Function; @@ -158,7 +157,7 @@ public interface Sone extends Identified, Fingerprintable, Comparable { @Override public boolean apply(Sone sone) { - return (sone == null) ? false : sone.getIdentity() instanceof OwnIdentity; + return (sone == null) ? false : sone.isLocal(); } };