Changeset d5aa7c8 in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 06/30/2026 01:24:56 PM (2 months ago)
- Branches:
- main
- Children:
- 462a931
- Parents:
- 61514f2
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r61514f2 rd5aa7c8 881 881 try { db.prepare('DELETE FROM ap_interactions WHERE object_uri = ? AND actor_uri = ?').run(oid, claimedActor); } catch { /* ignore */ } 882 882 try { db.prepare('DELETE FROM ap_timeline WHERE id = ? AND author_uri = ?').run(oid, claimedActor); } catch { /* ignore */ } 883 // Also clear a boost/like YOU made of this now-deleted remote post (the interact-page 884 // ap_my_reactions state), so it can't stay stuck as "boosted" on a post that's gone. 885 // Guard: only when the deleter owns the note's domain (B mustn't clear your reactions 886 // to A's posts). 887 try { 888 let sameHost = false; 889 try { sameHost = new URL(oid).host === new URL(claimedActor).host; } catch { sameHost = false; } 890 if (sameHost) db.prepare('DELETE FROM ap_my_reactions WHERE target_uri = ?').run(oid); 891 } catch { /* ignore */ } 883 892 } 884 893 return 202;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)