Skip to content

Commit

Permalink
feat: add rel="author" to topic route
Browse files Browse the repository at this point in the history
re: #11248
  • Loading branch information
julianlam committed Feb 24, 2023
1 parent 36bcdf8 commit 4cf04f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/controllers/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']) {
Expand Down

0 comments on commit 4cf04f0

Please sign in to comment.