Shun Miyazawa 3 lat temu
rodzic
commit
9b602f8a48
1 zmienionych plików z 5 dodań i 0 usunięć
  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;
 }