Browse Source

fix: update bookmark filtering logic to include users' top pages when hiding user pages

Shun Miyazawa 4 tháng trước cách đây
mục cha
commit
7185847edb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      apps/app/src/server/routes/apiv3/bookmarks.ts

+ 1 - 1
apps/app/src/server/routes/apiv3/bookmarks.ts

@@ -264,7 +264,7 @@ module.exports = (crowi) => {
         const filteredBookmarks = isHidingUserPages
           ? userRootBookmarks.filter(
               (bookmark) =>
-                !isUserPage(bookmark.page.path) &&
+                !isUserPage(bookmark.page.path) ||
                 !isUsersTopPage(bookmark.page.path),
             )
           : userRootBookmarks;