Implement local Sone filter by using isLocal().
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 29 Oct 2013 06:09:54 +0000 (07:09 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 28 Feb 2014 21:25:49 +0000 (22:25 +0100)
src/main/java/net/pterodactylus/sone/data/Sone.java

index a8830f8..93e05e8 100644 (file)
@@ -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<Sone> {
 
                @Override
                public boolean apply(Sone sone) {
-                       return (sone == null) ? false : sone.getIdentity() instanceof OwnIdentity;
+                       return (sone == null) ? false : sone.isLocal();
                }
 
        };