Avatar type for Feed check (#2661)
* Changed type from algo to list * Fixed to check if it's a feed or a list
This commit is contained in:
parent
640ce5e47b
commit
f81bacc402
2 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue