mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
fix: escape user full name for mention
This commit is contained in:
parent
a49885d3b1
commit
09e7597fa7
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ pub fn escape_code(s: &str) -> String {
|
||||||
pub fn user_mention_or_link(user: &User) -> String {
|
pub fn user_mention_or_link(user: &User) -> String {
|
||||||
match user.mention() {
|
match user.mention() {
|
||||||
Some(mention) => mention,
|
Some(mention) => mention,
|
||||||
None => link(user.url().as_str(), &user.full_name()),
|
None => link(user.url().as_str(), &escape(&user.full_name())),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue