Browse Source

fix Boards.uniqueTitle

Ben0it-T 3 years ago
parent
commit
e1550e9172
1 changed files with 5 additions and 5 deletions
  1. 5 5
      models/boards.js

+ 5 - 5
models/boards.js

@@ -1470,11 +1470,11 @@ Boards.uniqueTitle = title => {
     },
     },
   );
   );
 
 
-  if (num > 0) {
-    return `${base} [${num + 1}]`;
-  }
-
-  return title;
+  return `${m.groups.title} [${num + 1}]`;
+  //if (num > 0) {
+  //  return `${base} [${num + 1}]`;
+  //}
+  //return title;
 };
 };
 
 
 Boards.userSearch = (
 Boards.userSearch = (