fix: send content as plain string array for correct mf2tojf2 conversion

[{ text: "..." }] stays as array after mf2tojf2, breaking getContentProperty.
["text"] becomes a plain string, which getContentProperty handles correctly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-04-27 14:30:26 +02:00
parent 838dea6645
commit 39b79e9427
2 changed files with 5 additions and 5 deletions
+4 -4
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -115,7 +115,7 @@ export class Publisher {
const isInteractionWithoutBody = const isInteractionWithoutBody =
(likeOf || repostOf) && !trimmedBody; (likeOf || repostOf) && !trimmedBody;
if (!isInteractionWithoutBody) { if (!isInteractionWithoutBody) {
props["content"] = trimmedBody ? [{ text: trimmedBody }] : [{ text: "" }]; props["content"] = [trimmedBody];
} }
// ── Standard properties ─────────────────────────────────────────────── // ── Standard properties ───────────────────────────────────────────────