Changeset 55bba23 in Klonkt for src/routes
- Timestamp:
- 06/25/2026 09:13:53 AM (3 months ago)
- Branches:
- main
- Children:
- 4b5223f
- Parents:
- f9f3312
- File:
-
- 1 edited
-
src/routes/posts.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/routes/posts.js
rf9f3312 r55bba23 367 367 } 368 368 369 // Pin/unpin changed → push an actor Update so Mastodon re-fetches the featured370 // (pinned) collection promptly instead of waiting for its own actor refresh.369 // Pin/unpin/reorder → push Add/Remove activities so followers' instances update the 370 // pinned order immediately (reliable, unlike re-fetching the cached featured collection). 371 371 if ((post.pinned || 0) !== parsePinnedRank(pinned)) { 372 ActivityPubService.deliverActorUpdate(site).catch(() => { /* best-effort */ }); 372 const unpinned = (post.pinned || 0) > 0 && parsePinnedRank(pinned) === 0 ? [post.id] : []; 373 ActivityPubService.resyncFeaturedPins(site, unpinned).catch(() => { /* best-effort */ }); 373 374 } 374 375
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)