diff --git a/config/filters/index.js b/config/filters/index.js index 652218ef..c95bb1aa 100644 --- a/config/filters/index.js +++ b/config/filters/index.js @@ -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) => { diff --git a/package.json b/package.json index 9f26ed79..878ea6c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "5.2.9", + "version": "5.2.10", "description": "The source for my personal site. Built using 11ty and hosted on Netlify.", "type": "module", "scripts": { diff --git a/src/_includes/partials/webmentions/comments.liquid b/src/_includes/partials/webmentions/comments.liquid index 1c02574d..3289a72a 100644 --- a/src/_includes/partials/webmentions/comments.liquid +++ b/src/_includes/partials/webmentions/comments.liquid @@ -16,7 +16,7 @@
{{ mention.content.text }}
+{{ mention.content.text | webmentionsSanitizeComments }}