diff --git a/packages/pl-fe/src/components/ui/avatar.tsx b/packages/pl-fe/src/components/ui/avatar.tsx index 859f422c2..21b164ef4 100644 --- a/packages/pl-fe/src/components/ui/avatar.tsx +++ b/packages/pl-fe/src/components/ui/avatar.tsx @@ -5,6 +5,7 @@ import { defineMessages, FormattedMessage, useIntl } from 'react-intl'; import StillImage, { IStillImage } from 'pl-fe/components/still-image'; import { useSettings } from 'pl-fe/hooks/use-settings'; +import { isDefaultAvatar } from 'pl-fe/utils/accounts'; import AltIndicator from '../alt-indicator'; @@ -66,7 +67,7 @@ const Avatar = (props: IAvatar) => { }), [size, color]); if (disableUserProvidedMedia) { - if (isAvatarMissing || !alt) return null; + if (isAvatarMissing || !alt || isDefaultAvatar(src)) return null; return ( = ({ account }) => { let header: React.ReactNode; if (settings.disableUserProvidedMedia) { - if (!account.header_description) return null; + if (!account.header_description || isDefaultHeader(account.header)) return null; else return (