Changeset af21002 in Klonkt for src/services/ActivityPubService.js
- Timestamp:
- 07/16/2026 12:20:51 PM (8 weeks ago)
- Branches:
- main
- Children:
- 476d6e7
- Parents:
- 2d6a9c3
- git-author:
- Robin <roboburr@…> (07/13/2026 05:24:58 AM)
- git-committer:
- Robin <roboburr@…> (07/16/2026 12:20:51 PM)
- File:
-
- 1 edited
-
src/services/ActivityPubService.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/services/ActivityPubService.js
r2d6a9c3 raf21002 1472 1472 } 1473 1473 1474 // Step 2: the full bake, incl. @mention links. Resolves @user@host via webfinger ONCE (the 1475 // same resolver the federated copy uses) and bakes the profile links into content_rendered, 1476 // so page views never do a per-view lookup. Unresolvable handles stay plain text; on any 1477 // failure it degrades to the sync #hashtag/URL bake. Async (webfinger) → callers run it off 1478 // the save response so the request never blocks on a slow/dead remote server. 1479 export async function bakePostContentWithMentions(source) { 1480 const withHashUrls = bakePostContent(source); 1481 try { const m = await resolveMentionsInText('', withHashUrls); return m.html; } 1482 catch { return withHashUrls; } 1483 } 1484 1474 1485 // Extract the AP Hashtag tag objects from already-linked reply content. 1475 1486 function hashtagTags(base, content) { … … 2471 2482 deliverWithRetry, enqueueDelivery, processDeliveryQueue, startDeliveryWorker, 2472 2483 getReplyUris, markNotificationsSeen, countUnseenNotifications, hasPlayableAudio, 2473 linkifyBody, bakePostContent, listFollowers, removeFollower,2484 linkifyBody, bakePostContent, bakePostContentWithMentions, listFollowers, removeFollower, 2474 2485 };
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)