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