Procházet zdrojové kódy

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

arvid-e před 5 měsíci
rodič
revize
45735ce5d5
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  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;
   const isAdmin = user?.admin ?? false;
 
 
-  // REMINDER: Change to addConditionToListByNotMatchPathAndChildren
   if (options.hideUserPages && !isAdmin) {
   if (options.hideUserPages && !isAdmin) {
-    queryBuilder.addConditionToListByNotMatch('/user');
+    queryBuilder.addConditionToListByNotMatchPathAndChildren('/user');
   }
   }
 
 
   if (!options.includeTrashed) {
   if (!options.includeTrashed) {