fix #6198
This commit is contained in:
parent
679a026e72
commit
d7e8d4d5c3
64 changed files with 1193 additions and 1082 deletions
|
|
@ -1256,9 +1256,9 @@ async fn check_id(
|
|||
}
|
||||
|
||||
// if it's relay id, return id processed, otherwise return original id
|
||||
pub fn handle_relay_id(id: String) -> String {
|
||||
pub fn handle_relay_id(id: &str) -> &str {
|
||||
if id.ends_with(r"\r") || id.ends_with(r"/r") {
|
||||
id[0..id.len() - 2].to_string()
|
||||
&id[0..id.len() - 2]
|
||||
} else {
|
||||
id
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue