chore: clean up webmention comments + styles

This commit is contained in:
Cory Dransfeldt 2024-02-04 10:08:23 -08:00
parent d31d0fcdd5
commit f496e29f0a
No known key found for this signature in database
4 changed files with 8 additions and 13 deletions

View file

@ -55,6 +55,8 @@ export default {
if (url.includes('trakt.tv')) return '#Movies #Watching #Trakt'
return tagMap[url] || ''
},
// webmentions
webmentionsByUrl: (webmentions, url) => {
if (!webmentions) return null;
@ -114,6 +116,9 @@ export default {
return data
},
webmentionsSanitizeComments: (comment) => {
return comment.replace(/\?\?\?\?/g, '');
},
// dates
readableDate: (date) => {