diff --git a/config/filters.js b/config/filters.js index c584164d..ed558cb1 100644 --- a/config/filters.js +++ b/config/filters.js @@ -29,10 +29,6 @@ module.exports = { if (image && image !== '') return image return `${BASE_URL}/assets/img/social-card.jpg` }, - getUserImage: (image) => { - if (image && image !== '') return image - return `http://localhost:8080/assets/img/media/missing-user.jpg` - }, getPopularPosts: (posts, analytics) => { return posts .filter((post) => { @@ -50,7 +46,6 @@ module.exports = { 'like-of': [], 'repost-of': [], 'in-reply-to': [], - 'mention-of': [], } const hasRequiredFields = (entry) => { @@ -60,7 +55,7 @@ module.exports = { const filtered = webmentions - .filter((entry) => entry['wm-target'] === `${BASE_URL}${url}`) + .filter((entry) => entry['wm-target'].replace(utmPattern, '') === `${BASE_URL}${url}`) .filter((entry) => allowedTypes.includes(entry['wm-property'])) || [] filtered.forEach((m) => { @@ -79,7 +74,6 @@ module.exports = { } }) - // data['in-reply-to'] = [...data['in-reply-to'], ...data['mention-of']] data['in-reply-to'].sort((a, b) => a.published > b.published ? 1 : b.published > a.published ? -1 : 0 ) diff --git a/src/_includes/partials/webmentions/comments.liquid b/src/_includes/partials/webmentions/comments.liquid index 935fa09f..9768bee3 100644 --- a/src/_includes/partials/webmentions/comments.liquid +++ b/src/_includes/partials/webmentions/comments.liquid @@ -4,8 +4,7 @@ {% for mention in mentions['in-reply-to'] %}