mirror of
https://github.com/svemagie/obsidian-micropub.git
synced 2026-05-14 19:38:50 +02:00
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:
+1
-1
@@ -115,7 +115,7 @@ export class Publisher {
|
||||
const isInteractionWithoutBody =
|
||||
(likeOf || repostOf) && !trimmedBody;
|
||||
if (!isInteractionWithoutBody) {
|
||||
props["content"] = trimmedBody ? [{ text: trimmedBody }] : [{ text: "" }];
|
||||
props["content"] = [trimmedBody];
|
||||
}
|
||||
|
||||
// ── Standard properties ───────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user