This commit is contained in:
2023-07-19 16:21:21 +01:00
parent 06b9dba09b
commit d292e658fc
23 changed files with 496 additions and 238 deletions

View File

@ -188,7 +188,7 @@ export function transformText(body: string, tags: Array<Array<string>>) {
fragments = extractCustomEmoji(fragments, tags);
fragments = fragments.map(a => {
if (typeof a === "string") {
if (a.trim().length > 0) {
if (a.length > 0) {
return { type: "text", content: a } as ParsedFragment;
}
} else {