fix missing newline in community note in embeds
This commit is contained in:
parent
33db7b46cb
commit
900054bab0
@ -43,7 +43,7 @@ proc formatTweetForMastoAPI*(tweet: Tweet, cfg: Config, prefs: Prefs): string =
|
|||||||
let
|
let
|
||||||
note = get(tweet.birdwatch)
|
note = get(tweet.birdwatch)
|
||||||
noteContent = replaceUrls(note.text, prefs)
|
noteContent = replaceUrls(note.text, prefs)
|
||||||
content &= &"\n<blockquote><b>ⓘ {note.title}</b>\n{noteContent}</blockquote>"
|
content &= &"\n\n<blockquote><b>ⓘ {note.title}</b>\n{noteContent}</blockquote>"
|
||||||
|
|
||||||
result = content.replace("\n", "<br>")
|
result = content.replace("\n", "<br>")
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user