Shun Miyazawa %!s(int64=3) %!d(string=hai) anos
pai
achega
9b602f8a48
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      packages/app/src/pages/[[...path]].page.tsx

+ 5 - 0
packages/app/src/pages/[[...path]].page.tsx

@@ -406,6 +406,11 @@ async function injectPageData(context: GetServerSidePropsContext, props: Props):
     props.isLatestRevision = page.isLatestRevision();
   }
 
+  // add user to seen users
+  if (page != null && user != null) {
+    await page.seen(user);
+  }
+
   props.pageWithMeta = pageWithMeta;
 }