Check for correct objects.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 5 Nov 2013 21:42:31 +0000 (22:42 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 28 Feb 2014 21:25:53 +0000 (22:25 +0100)
src/main/java/net/pterodactylus/sone/database/memory/MemoryDatabase.java

index bdc247e..01b7839 100644 (file)
@@ -312,7 +312,7 @@ public class MemoryDatabase extends AbstractService implements Database {
        public boolean isLiked(Post post, Sone sone) {
                lock.readLock().lock();
                try {
-                       return likedPostsBySone.containsEntry(sone, post);
+                       return likedPostsBySone.containsEntry(sone.getId(), post.getId());
                } finally {
                        lock.readLock().unlock();
                }