chore: additional tags
This commit is contained in:
parent
d2a1f766ef
commit
6941cd3c2b
1 changed files with 6 additions and 1 deletions
|
@ -42,7 +42,12 @@ module.exports = {
|
||||||
return visitors(b) - visitors(a)
|
return visitors(b) - visitors(a)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
tagLookup: (url, tagMap) => tagMap[url],
|
tagLookup: (url, tagMap) => {
|
||||||
|
if (!url) return
|
||||||
|
if (url.includes('goodreads.com')) return '#Books #Reading'
|
||||||
|
if (url.includes('letterboxd.com')) return '#Movies #Letterboxd'
|
||||||
|
return tagMap[url] || ''
|
||||||
|
},
|
||||||
webmentionsByUrl: (webmentions, url) => {
|
webmentionsByUrl: (webmentions, url) => {
|
||||||
const allowedTypes = ['mention-of', 'in-reply-to', 'like-of', 'repost-of']
|
const allowedTypes = ['mention-of', 'in-reply-to', 'like-of', 'repost-of']
|
||||||
|
|
||||||
|
|
Reference in a new issue