diff --git a/src/state/queries/feed.ts b/src/state/queries/feed.ts index 4acc7179..67294ece 100644 --- a/src/state/queries/feed.ts +++ b/src/state/queries/feed.ts @@ -136,6 +136,10 @@ export function getFeedTypeFromUri(uri: string) { return pathname.includes(feedSourceNSIDs.feed) ? 'feed' : 'list' } +export function getAvatarTypeFromUri(uri: string) { + return getFeedTypeFromUri(uri) === 'feed' ? 'algo' : 'list' +} + export function useFeedSourceInfoQuery({uri}: {uri: string}) { const type = getFeedTypeFromUri(uri) diff --git a/src/view/screens/Feeds.tsx b/src/view/screens/Feeds.tsx index 9b3fd618..6651084b 100644 --- a/src/view/screens/Feeds.tsx +++ b/src/view/screens/Feeds.tsx @@ -30,6 +30,7 @@ import { useFeedSourceInfoQuery, useGetPopularFeedsQuery, useSearchPopularFeedsMutation, + getAvatarTypeFromUri, } from '#/state/queries/feed' import {cleanError} from 'lib/strings/errors' import {useComposerControls} from '#/state/shell/composer' @@ -555,6 +556,7 @@ function SavedFeed({feedUri}: {feedUri: string}) { const pal = usePalette('default') const {isMobile} = useWebMediaQueries() const {data: info, error} = useFeedSourceInfoQuery({uri: feedUri}) + const typeAvatar = getAvatarTypeFromUri(feedUri) if (!info) return ( @@ -582,7 +584,7 @@ function SavedFeed({feedUri}: {feedUri: string}) { /> ) : ( - + )}