mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Use favicon.ico to get instance favicon from NIP-05 of each user
This commit is contained in:
parent
b6f32c4d0f
commit
a99728981c
2 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue