diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-08-08 15:54:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 15:54:36 -0700 |
commit | bbe9861eef0e9f44b31259cb92221ee4094afac2 (patch) | |
tree | 2ddafcc3a9aa5fe19714203ea4bd616c3fcad4f9 /src/view/com/post-thread/PostThreadItem.tsx | |
parent | e51dbefd0ac1c04853237ed4889601da220f54ba (diff) | |
download | voidsky-bbe9861eef0e9f44b31259cb92221ee4094afac2.tar.zst |
Add alerts to embeds (#1138)
* Add alerts to embeds * Add images to the mock data * Fix types
Diffstat (limited to 'src/view/com/post-thread/PostThreadItem.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index c7b5711c0..b71d6bdcf 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -269,7 +269,10 @@ export const PostThreadItem = observer(function PostThreadItem({ ) : undefined} {item.post.embed && ( <ContentHider moderation={item.moderation.embed} style={s.mb10}> - <PostEmbeds embed={item.post.embed} /> + <PostEmbeds + embed={item.post.embed} + moderation={item.moderation.embed} + /> </ContentHider> )} </ContentHider> @@ -428,7 +431,10 @@ export const PostThreadItem = observer(function PostThreadItem({ ) : undefined} {item.post.embed && ( <ContentHider style={s.mb10} moderation={item.moderation.embed}> - <PostEmbeds embed={item.post.embed} /> + <PostEmbeds + embed={item.post.embed} + moderation={item.moderation.embed} + /> </ContentHider> )} {needsTranslation && ( |