show video in quote (#5093)
parent
dde72b48e1
commit
bd42f770b8
|
@ -11,6 +11,7 @@ import {
|
|||
AppBskyEmbedImages,
|
||||
AppBskyEmbedRecord,
|
||||
AppBskyEmbedRecordWithMedia,
|
||||
AppBskyEmbedVideo,
|
||||
AppBskyFeedDefs,
|
||||
AppBskyFeedPost,
|
||||
ModerationDecision,
|
||||
|
@ -180,12 +181,17 @@ export function QuoteEmbed({
|
|||
if (allowNestedQuotes) {
|
||||
return e
|
||||
} else {
|
||||
if (AppBskyEmbedImages.isView(e) || AppBskyEmbedExternal.isView(e)) {
|
||||
if (
|
||||
AppBskyEmbedImages.isView(e) ||
|
||||
AppBskyEmbedExternal.isView(e) ||
|
||||
AppBskyEmbedVideo.isView(e)
|
||||
) {
|
||||
return e
|
||||
} else if (
|
||||
AppBskyEmbedRecordWithMedia.isView(e) &&
|
||||
(AppBskyEmbedImages.isView(e.media) ||
|
||||
AppBskyEmbedExternal.isView(e.media))
|
||||
AppBskyEmbedExternal.isView(e.media) ||
|
||||
AppBskyEmbedVideo.isView(e.media))
|
||||
) {
|
||||
return e.media
|
||||
}
|
||||
|
|
|
@ -86,6 +86,7 @@ export function PostEmbeds({
|
|||
return <MaybeListCard view={embed.record} />
|
||||
}
|
||||
|
||||
// starter pack embed
|
||||
if (AppBskyGraphDefs.isStarterPackViewBasic(embed.record)) {
|
||||
return <StarterPackCard starterPack={embed.record} />
|
||||
}
|
||||
|
@ -178,6 +179,8 @@ export function PostEmbeds({
|
|||
)
|
||||
}
|
||||
|
||||
// video embed
|
||||
// =
|
||||
if (AppBskyEmbedVideo.isView(embed)) {
|
||||
return (
|
||||
<ContentHider modui={moderation?.ui('contentMedia')}>
|
||||
|
|
Loading…
Reference in New Issue