From f55cfbfcd28bc7b35e11b9f7060ecb2c390bfe6d Mon Sep 17 00:00:00 2001 From: Ricardo Date: Fri, 20 Mar 2026 15:30:50 +0100 Subject: [PATCH] fix: use existing default-avatar.svg instead of missing placeholder-avatar.png MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The fallback avatar URL pointed to /placeholder-avatar.png which doesn't exist (404). Changed to /images/default-avatar.svg which exists in the Eleventy theme and is served by the nginx image caching location with CORS headers — fixing cross-origin errors in Phanpy/Elk. --- lib/mastodon/entities/account.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/mastodon/entities/account.js b/lib/mastodon/entities/account.js index a6adfbb..425f48f 100644 --- a/lib/mastodon/entities/account.js +++ b/lib/mastodon/entities/account.js @@ -95,8 +95,8 @@ export function serializeAccount(actor, { baseUrl, isLocal = false, handle = "" url, display_name: displayName, note: sanitizeHtml(note), - avatar: avatarUrl || `${baseUrl}/placeholder-avatar.png`, - avatar_static: avatarUrl || `${baseUrl}/placeholder-avatar.png`, + avatar: avatarUrl || `${baseUrl}/images/default-avatar.svg`, + avatar_static: avatarUrl || `${baseUrl}/images/default-avatar.svg`, header: headerUrl || "", header_static: headerUrl || "", locked: actor.manuallyApprovesFollowers || false, diff --git a/package.json b/package.json index efa224c..14dab21 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rmdes/indiekit-endpoint-activitypub", - "version": "3.5.7", + "version": "3.5.8", "description": "ActivityPub federation endpoint for Indiekit via Fedify. Adds full fediverse support: actor, inbox, outbox, followers, following, syndication, and Mastodon migration.", "keywords": [ "indiekit",