From 4cf04f06f65f5cdb3916e96560f29ed1cb952507 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 24 Feb 2023 14:04:25 -0500 Subject: [PATCH] feat: add rel="author" to topic route re: #11248 --- src/controllers/topics.js | 4 ++++ 1 file changed, 4 insertions(+) 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']) {