diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-23 17:01:00 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-23 17:01:00 -0600 |
commit | f5ff0fd2749b5f9ebd9c6b4129513ff8ad577c00 (patch) | |
tree | d49af79643e7173bfe126354c93a6c86522fe3d7 /src/view/com/post-thread/PostThreadItem.tsx | |
parent | 89638dbd188023851e67d818dcd4c23204e3c70c (diff) | |
download | voidsky-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.tsx | 3 |
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} |