From 02c757c5a5dea8ce606f5c0be4d8b4294b30d4b6 Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Sat, 25 Apr 2026 15:05:22 +0200 Subject: [PATCH] fix: add self-reference filter for Bluesky on /interactions page The /interactions "Received" tab was missing the isSelfBsky() filter that all other components have, causing own Bluesky interactions to appear as "Anonymous mentioned" via the webmention.io API path. Co-Authored-By: Claude Opus 4.6 --- interactions.njk | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/interactions.njk b/interactions.njk index 1c2bdf6..de3f4a2 100644 --- a/interactions.njk +++ b/interactions.njk @@ -480,7 +480,8 @@ function interactionsApp() { } this.notConfigured = false; - const merged = this.mergeAndDeduplicate(allWm, allConv); + const merged = this.mergeAndDeduplicate(allWm, allConv) + .filter(wm => !wm.is_owner && !this.isSelfBsky(wm)); merged.sort((a, b) => { const dateA = new Date(a.published || a['wm-received'] || 0); @@ -498,6 +499,15 @@ function interactionsApp() { } }, + isSelfBsky(wm) { + const u = (wm['wm-source'] || '').toLowerCase(); + const a = (wm.author?.url || '').toLowerCase(); + return u.includes('bsky.app/profile/svemagie.bsky.social') || + u.includes('did:plc:g4utqyolpyb5zpwwodmm3hht') || + a.includes('bsky.app/profile/svemagie.bsky.social') || + a.includes('did:plc:g4utqyolpyb5zpwwodmm3hht'); + }, + detectPlatform(item) { const source = item['wm-source'] || ''; const authorUrl = item.author?.url || '';