fix: escape user full name for mention

This commit is contained in:
Serge Barinov 2022-06-05 09:42:39 +03:00
parent a49885d3b1
commit 09e7597fa7

View file

@ -124,7 +124,7 @@ pub fn escape_code(s: &str) -> String {
pub fn user_mention_or_link(user: &User) -> String {
match user.mention() {
Some(mention) => mention,
None => link(user.url().as_str(), &user.full_name()),
None => link(user.url().as_str(), &escape(&user.full_name())),
}
}