diff options
author | Samuel Newman <mozzius@protonmail.com> | 2023-09-01 00:44:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 16:44:42 -0700 |
commit | f16cc9537adc721d48ad4a63b882a6515eda3049 (patch) | |
tree | 9277f7b8652f43cea0af7e92c4aa57434d76857c | |
parent | ba393cd6423bfa84b3b16e77ffea9d36a8b034d2 (diff) | |
download | voidsky-f16cc9537adc721d48ad4a63b882a6515eda3049.tar.zst |
show images in notification if post also has record embed (#1349)
-rw-r--r-- | src/view/com/notifications/FeedItem.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/view/com/notifications/FeedItem.tsx b/src/view/com/notifications/FeedItem.tsx index 3e0d9f5c3..ef191a1d2 100644 --- a/src/view/com/notifications/FeedItem.tsx +++ b/src/view/com/notifications/FeedItem.tsx @@ -11,6 +11,7 @@ import { AppBskyEmbedImages, ProfileModeration, moderateProfile, + AppBskyEmbedRecordWithMedia, } from '@atproto/api' import {AtUri} from '@atproto/api' import { @@ -400,6 +401,9 @@ function AdditionalPostText({ const text = additionalPost.thread?.postRecord.text const images = AppBskyEmbedImages.isView(additionalPost.thread.post.embed) ? additionalPost.thread.post.embed.images + : AppBskyEmbedRecordWithMedia.isView(additionalPost.thread.post.embed) && + AppBskyEmbedImages.isView(additionalPost.thread.post.embed.media) + ? additionalPost.thread.post.embed.media.images : undefined return ( <> |