fix: reduce boost fetch failure logging from error to warning

Remote server timeouts during Announce.getObject() produced 20-line
stack traces. Now logs a single warning line with the cause code.
No behavior change — unreachable boosts were already skipped.
This commit is contained in:
Ricardo
2026-02-22 21:48:23 +01:00
parent bd07edefbb
commit fc63bb5b96
2 changed files with 4 additions and 2 deletions

View File

@@ -340,7 +340,9 @@ export function registerInboxListeners(inboxChain, options) {
await addTimelineItem(collections, timelineItem); await addTimelineItem(collections, timelineItem);
} catch (error) { } catch (error) {
console.error("Failed to store boosted timeline item:", error); // Remote object unreachable (timeout, Authorized Fetch, deleted, etc.) — skip
const cause = error?.cause?.code || error?.message || "unknown";
console.warn(`[AP] Skipped boost from ${actorUrl}: ${cause}`);
} }
} }
}) })

View File

@@ -1,6 +1,6 @@
{ {
"name": "@rmdes/indiekit-endpoint-activitypub", "name": "@rmdes/indiekit-endpoint-activitypub",
"version": "2.0.8", "version": "2.0.9",
"description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.", "description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.",
"keywords": [ "keywords": [
"indiekit", "indiekit",