diff --git a/config/filters.js b/config/filters.js index 7065a18d..21fca2c2 100644 --- a/config/filters.js +++ b/config/filters.js @@ -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']