Skip to content

Node.js based forum software built for the modern web

feat: add rel="author" to topic route

Julian Lam4cf04f06f65f
diff --git a/src/controllers/topics.js b/src/controllers/topics.js
index a92570b8c8..6033da5958 100644
--- a/src/controllers/topics.js
+++ b/src/controllers/topics.js
@@ -249,6 +249,10 @@ async function addTags(topicData, req, res) {
rel: 'canonical',
href: `${url}/topic/${topicData.slug}`,
},
+ {
+ rel: 'author',
+ href: `${url}/user/${postAtIndex.user.userslug}`,
+ },
];
if (!topicData['feeds:disableRSS']) {