Browse Source

Show pages that happen to start with user but are not user pages

arvid-e 5 months ago
parent
commit
45735ce5d5
1 changed files with 1 additions and 2 deletions
  1. 1 2
      apps/app/src/server/models/page.ts

+ 1 - 2
apps/app/src/server/models/page.ts

@@ -939,9 +939,8 @@ schema.statics.findRecentUpdatedPages = async function (
 
   const isAdmin = user?.admin ?? false;
 
-  // REMINDER: Change to addConditionToListByNotMatchPathAndChildren
   if (options.hideUserPages && !isAdmin) {
-    queryBuilder.addConditionToListByNotMatch('/user');
+    queryBuilder.addConditionToListByNotMatchPathAndChildren('/user');
   }
 
   if (!options.includeTrashed) {