Просмотр исходного кода

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

arvid-e 3 месяцев назад
Родитель
Сommit
45735ce5d5
1 измененных файлов с 1 добавлено и 2 удалено
  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) {