about summary refs log tree commit diff
path: root/src/state/queries/feed.ts
diff options
context:
space:
mode:
authorPrates <32964925+PratesM@users.noreply.github.com>2024-01-30 17:21:06 +0000
committerGitHub <noreply@github.com>2024-01-30 09:21:06 -0800
commitf81bacc4020c7d42456b5d0a4c07727fae4bbea0 (patch)
tree99eded6ea8ac363f1950c533ac0722589fe5b908 /src/state/queries/feed.ts
parent640ce5e47b6712b93d899fd0a71c008423c77af8 (diff)
downloadvoidsky-f81bacc4020c7d42456b5d0a4c07727fae4bbea0.tar.zst
Avatar type for Feed check (#2661)
* Changed type from algo to list

* Fixed to check if it's a feed or a list
Diffstat (limited to 'src/state/queries/feed.ts')
-rw-r--r--src/state/queries/feed.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state/queries/feed.ts b/src/state/queries/feed.ts
index 4acc7179a..67294ece2 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)