From 6fca8dc89c370c7bc0318be956780c5b9f4096d6 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 9 Apr 2022 07:12:57 +0200 Subject: Post: Fix typo in bookmarks query for logged-in users. Change-Id: Ibe6cd7cbdcf3abd9af189c9dd026a8562ad2b67c --- src/main/java/eu/mulk/mulkcms2/benki/posts/Post.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') 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> 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 { -- cgit v1.2.3