mirror of
https://github.com/svemagie/obsidian-micropub.git
synced 2026-05-15 03:48:52 +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 =
|
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 ───────────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user