|
|
@@ -395,6 +395,9 @@ module.exports = function(crowi, app) {
|
|
|
await addRenderVarsForSlack(renderVars, page);
|
|
|
await addRenderVarsForDescendants(renderVars, path, req.user, offset, limit, true);
|
|
|
|
|
|
+ const sharelinks = await ShareLink.find({ relatedPage: page._id });
|
|
|
+ renderVars.sharelinks = sharelinks;
|
|
|
+
|
|
|
if (isUserPage(page.path)) {
|
|
|
// change template
|
|
|
view = `layout-${layoutName}/user_page`;
|