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

fix onActivated event for user

Yuki Takei 7 лет назад
Родитель
Сommit
f931b7cbf0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/server/events/user.js

+ 1 - 1
src/server/events/user.js

@@ -14,7 +14,7 @@ UserEvent.prototype.onActivated = async function(user) {
 
 
   const userPagePath = Page.getUserPagePath(user);
   const userPagePath = Page.getUserPagePath(user);
 
 
-  const page = await Page.findByPathAndViewer(userPagePath, user);
+  const page = await Page.findByPath(userPagePath, user);
 
 
   if (page == null) {
   if (page == null) {
     const body = `# ${user.username}\nThis is ${user.username}'s page`;
     const body = `# ${user.username}\nThis is ${user.username}'s page`;