fix: add self-reference filter for Bluesky on /interactions page
Build & Deploy / build-and-deploy (push) Successful in 1m55s

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 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-04-25 15:05:22 +02:00
parent e585a3823c
commit 02c757c5a5
+11 -1
View File
@@ -480,7 +480,8 @@ function interactionsApp() {
} }
this.notConfigured = false; 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) => { merged.sort((a, b) => {
const dateA = new Date(a.published || a['wm-received'] || 0); 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) { detectPlatform(item) {
const source = item['wm-source'] || ''; const source = item['wm-source'] || '';
const authorUrl = item.author?.url || ''; const authorUrl = item.author?.url || '';