about summary refs log tree commit diff
path: root/src/view/com/util/post-ctrls/PostCtrls.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-10-24 20:41:50 +0100
committerGitHub <noreply@github.com>2024-10-24 20:41:50 +0100
commite8a53dcea84afc3b313037dbaf059c68121eb9ab (patch)
tree43593f5bb5ab852b6c61244167d5ead31c8ec125 /src/view/com/util/post-ctrls/PostCtrls.tsx
parentfa4cca11fedb78b31b7b606eafa74ebc17435f24 (diff)
downloadvoidsky-e8a53dcea84afc3b313037dbaf059c68121eb9ab.tar.zst
Refactor post meta to return PostView (#5645)
Diffstat (limited to 'src/view/com/util/post-ctrls/PostCtrls.tsx')
-rw-r--r--src/view/com/util/post-ctrls/PostCtrls.tsx16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/view/com/util/post-ctrls/PostCtrls.tsx b/src/view/com/util/post-ctrls/PostCtrls.tsx
index 48d081f79..160053a8c 100644
--- a/src/view/com/util/post-ctrls/PostCtrls.tsx
+++ b/src/view/com/util/post-ctrls/PostCtrls.tsx
@@ -199,27 +199,15 @@ let PostCtrls = ({
       feedContext,
     })
     openComposer({
-      quote: {
-        uri: post.uri,
-        cid: post.cid,
-        text: record.text,
-        author: post.author,
-        indexedAt: post.indexedAt,
-      },
-      quoteCount: post.quoteCount,
+      quote: post,
       onPost: onPostReply,
     })
   }, [
     _,
     sendInteraction,
-    post.uri,
-    post.cid,
-    post.author,
-    post.indexedAt,
-    post.quoteCount,
+    post,
     feedContext,
     openComposer,
-    record.text,
     onPostReply,
     isBlocked,
   ])