Explorar o código

fix onActivated event for user

Yuki Takei %!s(int64=7) %!d(string=hai) anos
pai
achega
f931b7cbf0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 page = await Page.findByPathAndViewer(userPagePath, user);
+  const page = await Page.findByPath(userPagePath, user);
 
   if (page == null) {
     const body = `# ${user.username}\nThis is ${user.username}'s page`;