fix: normalize federated asset URLs in explore and social stores

Resolve remote instance avatars and space icons at the data boundary
so they render correctly instead of 404ing against the home instance.
This commit is contained in:
Jannis Braun
2026-03-08 22:40:02 +01:00
parent b598236f82
commit c3bf635fc9
3 changed files with 24 additions and 7 deletions
+2
View File
@@ -335,12 +335,14 @@ function handleEvent(origin: string, event: ServerEvent): void {
// ─── Social events (all origins — federation) ──────────────────────────
case 'friend_request_received': {
if (!isHome && event.request.user) normalizeUserAssets(event.request.user, origin);
const { addIncomingRequest } = useSocialStore.getState();
addIncomingRequest(event.request, origin);
break;
}
case 'friend_request_accepted': {
if (!isHome) normalizeUserAssets(event.friend, origin);
const { addFriendFromAccepted } = useSocialStore.getState();
addFriendFromAccepted(event.friend, event.requestId, origin);
break;