Don’t check for Sones but for their IDs.
[Sone.git] / src / main / java / net / pterodactylus / sone / template / SoneAccessor.java
index edc0eec..a9ee78b 100644 (file)
@@ -69,7 +69,7 @@ public class SoneAccessor extends ReflectionAccessor {
                        return sone.getInsertUri() != null;
                } else if (member.equals("friend")) {
                        Sone currentSone = (Sone) dataProvider.getData("currentSone");
-                       return (currentSone != null) && currentSone.hasFriend(sone);
+                       return (currentSone != null) && currentSone.hasFriend(sone.getId());
                } else if (member.equals("current")) {
                        Sone currentSone = (Sone) dataProvider.getData("currentSone");
                        return (currentSone != null) && currentSone.equals(sone);