mirror of
https://github.com/svemagie/indiekit-endpoint-activitypub.git
synced 2026-04-02 15:44:58 +02:00
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:
@@ -340,7 +340,9 @@ export function registerInboxListeners(inboxChain, options) {
|
||||
|
||||
await addTimelineItem(collections, timelineItem);
|
||||
} 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}`);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"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.",
|
||||
"keywords": [
|
||||
"indiekit",
|
||||
|
||||
Reference in New Issue
Block a user