fix: preserve newlines in reply tags

This commit is contained in:
Peter Steinberger
2026-01-02 23:36:43 +00:00
parent 9616f4b2b1
commit 59601eb99c
3 changed files with 14 additions and 1 deletions

View File

@@ -193,7 +193,10 @@ export function extractReplyToTag(
hasTag = true;
}
cleaned = cleaned.replace(/\s+/g, " ").trim();
cleaned = cleaned
.replace(/[ \t]+/g, " ")
.replace(/[ \t]*\n[ \t]*/g, "\n")
.trim();
return { cleaned, replyToId, hasTag };
}