diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java index 12abb2b..1c6653a 100644 --- a/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java +++ b/src/main/java/eu/mulk/mulkcms2/benki/bookmarks/BookmarkResource.java @@ -275,8 +275,6 @@ public class BookmarkResource { From<?, Bookmark> bm; if (identity.isAnonymous()) { bm = query.from(Bookmark.class); - query.select(bm); - var target = bm.join(Bookmark_.targets); query.where(cb.equal(target, Role.getWorld())); } else { @@ -288,6 +286,7 @@ public class BookmarkResource { bm = root.join(User_.visibleBookmarks); } + query.select(bm); bm.fetch(Bookmark_.owner, JoinType.LEFT); query.orderBy(cb.desc(bm.get(Bookmark_.date))); |