From 95638f1b175255f63ca23f8292d71b8ee1a93de7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 5 Nov 2013 22:42:31 +0100 Subject: [PATCH] Check for correct objects. --- .../java/net/pterodactylus/sone/database/memory/MemoryDatabase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/database/memory/MemoryDatabase.java b/src/main/java/net/pterodactylus/sone/database/memory/MemoryDatabase.java index bdc247e..01b7839 100644 --- a/src/main/java/net/pterodactylus/sone/database/memory/MemoryDatabase.java +++ b/src/main/java/net/pterodactylus/sone/database/memory/MemoryDatabase.java @@ -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(); } -- 2.7.4