summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-04-09 07:12:57 +0200
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2022-04-09 07:13:42 +0200
commit6fca8dc89c370c7bc0318be956780c5b9f4096d6 (patch)
treedb30747c9d20fd42481b74a35cbeb03d79e419dc /src/main
parent1ef241ddce311ef419952f71ceedfc5cd195ec30 (diff)
Post: Fix typo in bookmarks query for logged-in users.
Change-Id: Ibe6cd7cbdcf3abd9af189c9dd026a8562ad2b67c
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java2
1 files changed, 1 insertions, 1 deletions
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 @@ public abstract class Post<Text extends PostText<?>> extends PanacheEntityBase {
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 {