diff --git a/app/soapbox/components/account.tsx b/app/soapbox/components/account.tsx index 56491a7c6..861b8d475 100644 --- a/app/soapbox/components/account.tsx +++ b/app/soapbox/components/account.tsx @@ -41,13 +41,17 @@ const InstanceFavicon: React.FC = ({ account, disabled }) => { } }; + if (!account.pleroma?.favicon) { + return null; + } + return ( ); }; @@ -229,7 +233,7 @@ const Account = ({ @{username} - {account.favicon && ( + {account.pleroma?.favicon && ( )} diff --git a/app/soapbox/schemas/account.ts b/app/soapbox/schemas/account.ts index de9763313..563e98e90 100644 --- a/app/soapbox/schemas/account.ts +++ b/app/soapbox/schemas/account.ts @@ -30,7 +30,6 @@ const baseAccountSchema = z.object({ discoverable: z.boolean().catch(false), display_name: z.string().catch(''), emojis: filteredArray(customEmojiSchema), - favicon: z.string().catch(''), fields: filteredArray(fieldSchema), followers_count: z.number().catch(0), following_count: z.number().catch(0),