diff options
author | Eric Bailey <git@esb.lol> | 2025-06-11 13:22:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-11 13:22:02 -0500 |
commit | 143d5f3b814f1ce707fdfc87dabff7af5349bd06 (patch) | |
tree | 86cd639d45da0c994f8bf1d9160b1a8497f53e0c /src/view/com/posts/PostFeedItem.tsx | |
parent | 7341294df6156afdf24ab43e1e27ebba94f265ad (diff) | |
download | voidsky-143d5f3b814f1ce707fdfc87dabff7af5349bd06.tar.zst |
Post source handling updates (#8472)
* Add debugs * Key post-source using URI with handle * Enhance * EnHANCE * ENHANCE * ENHANCEEEECEE * ᵉⁿʰᵃⁿᶜᵉ * enhance
Diffstat (limited to 'src/view/com/posts/PostFeedItem.tsx')
-rw-r--r-- | src/view/com/posts/PostFeedItem.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/view/com/posts/PostFeedItem.tsx b/src/view/com/posts/PostFeedItem.tsx index b9aa67673..fd0d1c707 100644 --- a/src/view/com/posts/PostFeedItem.tsx +++ b/src/view/com/posts/PostFeedItem.tsx @@ -36,7 +36,10 @@ import {useFeedFeedbackContext} from '#/state/feed-feedback' import {unstableCacheProfileView} from '#/state/queries/profile' import {useSession} from '#/state/session' import {useMergedThreadgateHiddenReplies} from '#/state/threadgate-hidden-replies' -import {useSetUnstablePostSource} from '#/state/unstable-post-source' +import { + buildPostSourceKey, + setUnstablePostSource, +} from '#/state/unstable-post-source' import {FeedNameText} from '#/view/com/util/FeedInfoText' import {Link, TextLink, TextLinkOnWebOnly} from '#/view/com/util/Link' import {PostEmbeds, PostEmbedViewContext} from '#/view/com/util/post-embeds' @@ -176,7 +179,6 @@ let FeedItemInner = ({ return makeProfileLink(post.author, 'post', urip.rkey) }, [post.uri, post.author]) const {sendInteraction, feedDescriptor} = useFeedFeedbackContext() - const unstableSetPostSource = useSetUnstablePostSource() const onPressReply = () => { sendInteraction({ @@ -232,7 +234,7 @@ let FeedItemInner = ({ reqId, }) unstableCacheProfileView(queryClient, post.author) - unstableSetPostSource(post.uri, { + setUnstablePostSource(buildPostSourceKey(post.uri, post.author.handle), { feed: feedDescriptor, post: { post, |