Changeset 8b700ad in Klonkt
- Timestamp:
- 06/30/2026 01:38:10 PM (2 months ago)
- Branches:
- main
- Children:
- d8e3ff7
- Parents:
- 462a931
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r462a931 r8b700ad 829 829 const media = mediaFromNote(o); 830 830 try { 831 const r = db.prepare('UPDATE ap_timeline SET content = ?, media_json = ?, nsfw = ?, cw = ? WHERE id = ? AND author_uri = ?') 832 .run(html, media, o.sensitive ? 1 : 0, o.summary || null, o.id, claimedActor); 831 // Refresh url too (COALESCE keeps the old one if the Update omits it): a remote slug 832 // rename keeps the same AP id but changes the human url, so without this the cached 833 // post would keep linking to the old, now-dead URL. 834 const r = db.prepare('UPDATE ap_timeline SET content = ?, media_json = ?, nsfw = ?, cw = ?, url = COALESCE(?, url) WHERE id = ? AND author_uri = ?') 835 .run(html, media, o.sensitive ? 1 : 0, o.summary || null, o.url || null, o.id, claimedActor); 833 836 if (r.changes) console.log('[AP] timeline update', claimedActor, '→', o.id); 834 837 } catch { /* ignore */ }
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)