feat: add rel="author" to topic route

re: #11248
isekai-main
Julian Lam 2 years ago
parent 36bcdf8f9d
commit 4cf04f06f6

@ -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']) {

Loading…
Cancel
Save