mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: resolve handle in feed/list urls (#2497)

authored by

Mary and committed by
GitHub
6076b8f7 439f459c

+14 -7
+5 -3
src/view/com/composer/useExternalLinkFetch.ts
··· 18 18 import {logger} from '#/logger' 19 19 import {getAgent} from '#/state/session' 20 20 import {useGetPost} from '#/state/queries/post' 21 + import {useFetchDid} from '#/state/queries/handle' 21 22 22 23 export function useExternalLinkFetch({ 23 24 setQuote, ··· 28 29 undefined, 29 30 ) 30 31 const getPost = useGetPost() 32 + const fetchDid = useFetchDid() 31 33 32 34 useEffect(() => { 33 35 let aborted = false ··· 55 57 }, 56 58 ) 57 59 } else if (isBskyCustomFeedUrl(extLink.uri)) { 58 - getFeedAsEmbed(getAgent(), extLink.uri).then( 60 + getFeedAsEmbed(getAgent(), fetchDid, extLink.uri).then( 59 61 ({embed, meta}) => { 60 62 if (aborted) { 61 63 return ··· 73 75 }, 74 76 ) 75 77 } else if (isBskyListUrl(extLink.uri)) { 76 - getListAsEmbed(getAgent(), extLink.uri).then( 78 + getListAsEmbed(getAgent(), fetchDid, extLink.uri).then( 77 79 ({embed, meta}) => { 78 80 if (aborted) { 79 81 return ··· 133 135 }) 134 136 } 135 137 return cleanup 136 - }, [extLink, setQuote, getPost]) 138 + }, [extLink, setQuote, getPost, fetchDid]) 137 139 138 140 return {extLink, setExtLink} 139 141 }