diff options
author | Ansh Nanda <anshnanda10@gmail.com> | 2023-05-16 19:04:47 -0700 |
---|---|---|
committer | Ansh Nanda <anshnanda10@gmail.com> | 2023-05-16 19:04:47 -0700 |
commit | 59c1b545fad5883487777f0a36ee21f3791aa268 (patch) | |
tree | 1f71042c06f3a5fde3df0abee279aa7a7fc67c66 /src/view/com/algos/AlgoItem.tsx | |
parent | ff3cc3b84d74453a1f5c7443c492d5d894e53b2f (diff) | |
download | voidsky-59c1b545fad5883487777f0a36ee21f3791aa268.tar.zst |
fix routing on web
Diffstat (limited to 'src/view/com/algos/AlgoItem.tsx')
-rw-r--r-- | src/view/com/algos/AlgoItem.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/view/com/algos/AlgoItem.tsx b/src/view/com/algos/AlgoItem.tsx index b28545c17..f2c36d7e9 100644 --- a/src/view/com/algos/AlgoItem.tsx +++ b/src/view/com/algos/AlgoItem.tsx @@ -18,6 +18,7 @@ import {NavigationProp} from 'lib/routes/types' import {useStores} from 'state/index' import {HeartIconSolid} from 'lib/icons' import {pluralize} from 'lib/strings/helpers' +import {AtUri} from '@atproto/api' const AlgoItem = observer( ({ @@ -48,8 +49,11 @@ const AlgoItem = observer( style={[styles.container, style]} onPress={() => { navigation.navigate('CustomFeed', { - name: item.data.displayName, - rkey: item.data.uri, + name: item.data.creator.did, + rkey: new AtUri(item.data.uri).rkey, + displayName: + item.data.displayName ?? + `${item.data.creator.displayName}'s feed`, }) }} key={item.data.uri}> |