format
This commit is contained in:
@@ -8,11 +8,11 @@ export function parseEmbedDescription(post: AppBskyFeedDefs.PostView): string {
|
|||||||
checkType('app.bsky.embed.recordWithMedia#view', post.embed));
|
checkType('app.bsky.embed.recordWithMedia#view', post.embed));
|
||||||
|
|
||||||
let embed;
|
let embed;
|
||||||
if(isQuote){
|
if (isQuote) {
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
embed = post.embed.record?.record ?? post.embed.record;
|
embed = post.embed.record?.record ?? post.embed.record;
|
||||||
}
|
}
|
||||||
|
|
||||||
return isQuote
|
return isQuote
|
||||||
? // @ts-expect-error
|
? // @ts-expect-error
|
||||||
`${post.record.text}\n\nQuoting @${embed.author.handle}\n➥${indent(embed.value.text, 2)}`
|
`${post.record.text}\n\nQuoting @${embed.author.handle}\n➥${indent(embed.value.text, 2)}`
|
||||||
|
|||||||
Reference in New Issue
Block a user