Post: Fix typo in bookmarks query for logged-in users.
Change-Id: Ibe6cd7cbdcf3abd9af189c9dd026a8562ad2b67c
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java b/src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java
index 02a11fa..2c56285 100644
--- a/src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java
+++ b/src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java
@@ -166,7 +166,7 @@
if (entityClass.isAssignableFrom(Post.class)) {
cb = cb.innerJoin("user.visiblePosts", "post");
} else if (entityClass.isAssignableFrom(Bookmark.class)) {
- cb = cb.innerJoin("user.visibleBookmark", "post");
+ cb = cb.innerJoin("user.visibleBookmarks", "post");
} else if (entityClass.isAssignableFrom(LazychatMessage.class)) {
cb = cb.innerJoin("user.visibleLazychatMessages", "post");
} else {