This commit is contained in:
Lexedia
2024-10-28 08:30:51 +01:00
parent 5f464b0f8a
commit 038fd60abd

View File

@@ -8,11 +8,11 @@ export function parseEmbedDescription(post: AppBskyFeedDefs.PostView): string {
checkType('app.bsky.embed.recordWithMedia#view', post.embed));
let embed;
if(isQuote){
if (isQuote) {
// @ts-expect-error
embed = post.embed.record?.record ?? post.embed.record;
}
return isQuote
? // @ts-expect-error
`${post.record.text}\n\nQuoting @${embed.author.handle}\n➥${indent(embed.value.text, 2)}`