Use favicon.ico to get instance favicon from NIP-05 of each user

This commit is contained in:
Alex Gleason 2024-08-15 21:36:28 -05:00
parent b6f32c4d0f
commit a99728981c
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 0 deletions

View file

@ -45,6 +45,7 @@ export interface MastodonAccount {
}; };
pleroma: { pleroma: {
deactivated: boolean; deactivated: boolean;
favicon?: string;
is_admin: boolean; is_admin: boolean;
is_moderator: boolean; is_moderator: boolean;
is_suggested: boolean; is_suggested: boolean;

View file

@ -94,6 +94,7 @@ async function renderAccount(
is_local: parsed05?.domain === Conf.url.host, is_local: parsed05?.domain === Conf.url.host,
settings_store: undefined as unknown, settings_store: undefined as unknown,
tags: [...getTagSet(event.user?.tags ?? [], 't')], tags: [...getTagSet(event.user?.tags ?? [], 't')],
favicon: parsed05?.domain ? new URL('/favicon.ico', `https://${parsed05.domain}`).toString() : undefined,
}, },
nostr: { nostr: {
pubkey, pubkey,