fix: escape user full name for mention

Former-commit-id: 09e7597fa7
This commit is contained in:
Serge Barinov 2022-06-05 09:42:39 +03:00
parent 13afc9614e
commit 70f831e4c0

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())),
}
}