1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-25 12:34:19 +00:00

Fix TelegramWrite of DiarioEntry with warnings

This commit is contained in:
Steffo 2024-08-08 00:44:25 +02:00
parent 082ab57b68
commit c726d4cbc8
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -67,7 +67,7 @@ impl TelegramWrite for DiarioEntry {
// Quote optionally covered by a spoiler tag
match self.warning.to_owned() {
None => write!(f, "<blockquote expandable>{}</blockquote>", self.clone().quote.escape_telegram_html())?,
Some(warning) => write!(f, "<blockquote expandable><tg-spoiler>{}</tg-spoiler></blockquote>", warning.escape_telegram_html())?,
Some(warning) => write!(f, "<blockquote expandable><tg-spoiler>{}</tg-spoiler></blockquote>", self.clone().quote.escape_telegram_html())?,
}
// Newline