we have a tag page now

This commit is contained in:
lesion
2022-08-05 18:10:16 +02:00
parent fb05691eb1
commit 308c423b45
3 changed files with 11 additions and 11 deletions

View File

@@ -111,7 +111,7 @@ Event.prototype.toAP = function (username, locale, to = []) {
tag: tags && tags.map(tag => ({
type: 'Hashtag',
name: '#' + tag,
href: '/tags/' + tag
href: `${config.baseurl}/tag/${tag}`
})),
published: dayjs(this.createdAt).utc().format(),
attributedTo: `${config.baseurl}/federation/u/${username}`,