fix crash on citation with empty msg (only asset) #92

Merged
Anri merged 1 commit from fix/citation into main 2023-04-25 13:30:00 +02:00
Showing only changes of commit 036d8c1d47 - Show all commits

View file

@ -115,7 +115,10 @@ export default async (message: Message, client: Client) => {
}
// Description as post content
embed.setDescription(quoted_post?.content ?? "");
if (quoted_post?.content) {
// Only if content exists and length > 0
embed.setDescription(quoted_post?.content);
}
// Footer
let footer = `Posté le ${showDate(