fix: add self-reference filter for Bluesky on /interactions page
Build & Deploy / build-and-deploy (push) Successful in 1m55s
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:
+11
-1
@@ -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 || '';
|
||||
|
||||
Reference in New Issue
Block a user