show images in notification if post also has record embed (#1349)
This commit is contained in:
parent
ba393cd642
commit
f16cc9537a
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,7 @@ import {
|
||||||
AppBskyEmbedImages,
|
AppBskyEmbedImages,
|
||||||
ProfileModeration,
|
ProfileModeration,
|
||||||
moderateProfile,
|
moderateProfile,
|
||||||
|
AppBskyEmbedRecordWithMedia,
|
||||||
} from '@atproto/api'
|
} from '@atproto/api'
|
||||||
import {AtUri} from '@atproto/api'
|
import {AtUri} from '@atproto/api'
|
||||||
import {
|
import {
|
||||||
|
@ -400,6 +401,9 @@ function AdditionalPostText({
|
||||||
const text = additionalPost.thread?.postRecord.text
|
const text = additionalPost.thread?.postRecord.text
|
||||||
const images = AppBskyEmbedImages.isView(additionalPost.thread.post.embed)
|
const images = AppBskyEmbedImages.isView(additionalPost.thread.post.embed)
|
||||||
? additionalPost.thread.post.embed.images
|
? 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
|
: undefined
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue