2
0
Эх сурвалжийг харах

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

arvid-e 5 сар өмнө
parent
commit
45735ce5d5

+ 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) {