about summary refs log tree commit diff
path: root/src/components
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-05-28 22:09:28 +0300
committerGitHub <noreply@github.com>2025-05-28 22:09:28 +0300
commitcf63c2ca07c9a77bb92449ea4f3d78b8dd54fb8f (patch)
tree6136c729a77ef8daf3cbece566f4221c1b6a8d47 /src/components
parent665a0430a3c04a3ad689954c5f930b4434daef79 (diff)
downloadvoidsky-cf63c2ca07c9a77bb92449ea4f3d78b8dd54fb8f.tar.zst
Send FeedFeedback interactions in thread view (#8414)
Diffstat (limited to 'src/components')
-rw-r--r--src/components/PostControls/index.tsx9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/PostControls/index.tsx b/src/components/PostControls/index.tsx
index 7739da56b..f024928ee 100644
--- a/src/components/PostControls/index.tsx
+++ b/src/components/PostControls/index.tsx
@@ -50,6 +50,7 @@ let PostControls = ({
   logContext,
   threadgateRecord,
   onShowLess,
+  viaRepost,
 }: {
   big?: boolean
   post: Shadow<AppBskyFeedDefs.PostView>
@@ -63,13 +64,19 @@ let PostControls = ({
   logContext: 'FeedItem' | 'PostThreadItem' | 'Post' | 'ImmersiveVideo'
   threadgateRecord?: AppBskyFeedThreadgate.Record
   onShowLess?: (interaction: AppBskyFeedDefs.Interaction) => void
+  viaRepost?: {uri: string; cid: string}
 }): React.ReactNode => {
   const {_, i18n} = useLingui()
   const {gtMobile} = useBreakpoints()
   const {openComposer} = useOpenComposer()
-  const [queueLike, queueUnlike] = usePostLikeMutationQueue(post, logContext)
+  const [queueLike, queueUnlike] = usePostLikeMutationQueue(
+    post,
+    viaRepost,
+    logContext,
+  )
   const [queueRepost, queueUnrepost] = usePostRepostMutationQueue(
     post,
+    viaRepost,
     logContext,
   )
   const requireAuth = useRequireAuth()