Parcourir la source

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

arvid-e il y a 5 mois
Parent
commit
45735ce5d5
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  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) {