Show quote posts (#4865)
* show quote posts
* fix filter
* fix keyExtractor
* move likedby and repostedby to new file structure
* use modern list component
* remove relative imports
* update quotes count after quoting
* call `onPost` after updating quote count
* Revert "update quotes count after quoting"
This reverts commit 1f1887730a.
* implement
* update like count in quotes list
* only add `onPostReply` where needed
* Filter quotes with detached embeds
* Bump SDK
* Don't show error for no results
---------
Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
Co-authored-by: Hailey <me@haileyok.com>
Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
@@ -58,6 +58,7 @@ let PostCtrls = ({
|
||||
feedContext,
|
||||
style,
|
||||
onPressReply,
|
||||
onPostReply,
|
||||
logContext,
|
||||
}: {
|
||||
big?: boolean
|
||||
@@ -67,6 +68,7 @@ let PostCtrls = ({
|
||||
feedContext?: string | undefined
|
||||
style?: StyleProp<ViewStyle>
|
||||
onPressReply: () => void
|
||||
onPostReply?: (postUri: string | undefined) => void
|
||||
logContext: 'FeedItem' | 'PostThreadItem' | 'Post'
|
||||
}): React.ReactNode => {
|
||||
const t = useTheme()
|
||||
@@ -169,16 +171,20 @@ let PostCtrls = ({
|
||||
author: post.author,
|
||||
indexedAt: post.indexedAt,
|
||||
},
|
||||
quoteCount: post.quoteCount,
|
||||
onPost: onPostReply,
|
||||
})
|
||||
}, [
|
||||
openComposer,
|
||||
sendInteraction,
|
||||
post.uri,
|
||||
post.cid,
|
||||
post.author,
|
||||
post.indexedAt,
|
||||
record.text,
|
||||
sendInteraction,
|
||||
post.quoteCount,
|
||||
feedContext,
|
||||
openComposer,
|
||||
record.text,
|
||||
onPostReply,
|
||||
])
|
||||
|
||||
const onShare = useCallback(() => {
|
||||
|
||||
Reference in New Issue
Block a user