about summary refs log tree commit diff
path: root/src/view/com/post-thread/PostThreadItem.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-23 17:01:00 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-23 17:01:00 -0600
commitf5ff0fd2749b5f9ebd9c6b4129513ff8ad577c00 (patch)
treed49af79643e7173bfe126354c93a6c86522fe3d7 /src/view/com/post-thread/PostThreadItem.tsx
parent89638dbd188023851e67d818dcd4c23204e3c70c (diff)
downloadvoidsky-f5ff0fd2749b5f9ebd9c6b4129513ff8ad577c00.tar.zst
Add link embeds to posts
Diffstat (limited to 'src/view/com/post-thread/PostThreadItem.tsx')
-rw-r--r--src/view/com/post-thread/PostThreadItem.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx
index 98d6bd371..95b02837d 100644
--- a/src/view/com/post-thread/PostThreadItem.tsx
+++ b/src/view/com/post-thread/PostThreadItem.tsx
@@ -14,6 +14,7 @@ import {s, colors} from '../../lib/styles'
 import {ago, pluralize} from '../../../lib/strings'
 import {useStores} from '../../../state'
 import {PostMeta} from '../util/PostMeta'
+import {PostEmbeds} from '../util/PostEmbeds'
 import {PostCtrls} from '../util/PostCtrls'
 
 const PARENT_REPLY_LINE_LENGTH = 8
@@ -151,6 +152,7 @@ export const PostThreadItem = observer(function PostThreadItem({
               style={[styles.postText, styles.postTextLarge]}
             />
           </View>
+          <PostEmbeds entities={record.entities} />
           {item._isHighlightedPost && hasEngagement ? (
             <View style={styles.expandedInfo}>
               {item.repostCount ? (
@@ -252,6 +254,7 @@ export const PostThreadItem = observer(function PostThreadItem({
                 style={[styles.postText]}
               />
             </View>
+            <PostEmbeds entities={record.entities} style={{marginBottom: 10}} />
             <PostCtrls
               replyCount={item.replyCount}
               repostCount={item.repostCount}