mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Merge branch 'favicon' into 'main'
Use favicon.ico to get instance favicon from NIP-05 of each user See merge request soapbox-pub/ditto!459
This commit is contained in:
commit
36933484ec
2 changed files with 2 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ export interface MastodonAccount {
|
|||
};
|
||||
pleroma: {
|
||||
deactivated: boolean;
|
||||
favicon?: string;
|
||||
is_admin: boolean;
|
||||
is_moderator: boolean;
|
||||
is_suggested: boolean;
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@ async function renderAccount(
|
|||
is_local: parsed05?.domain === Conf.url.host,
|
||||
settings_store: undefined as unknown,
|
||||
tags: [...getTagSet(event.user?.tags ?? [], 't')],
|
||||
favicon: parsed05?.domain ? new URL('/favicon.ico', `https://${parsed05.domain}`).toString() : undefined,
|
||||
},
|
||||
nostr: {
|
||||
pubkey,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue