chore: additional tags

This commit is contained in:
Cory Dransfeldt 2023-09-13 18:04:31 -07:00
parent d2a1f766ef
commit 6941cd3c2b
No known key found for this signature in database

View file

@ -42,7 +42,12 @@ module.exports = {
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) => {
const allowedTypes = ['mention-of', 'in-reply-to', 'like-of', 'repost-of']