mirror of
https://github.com/FliegendeWurst/telegram_notes_bot.git
synced 2024-11-22 10:54:57 +00:00
Disable broken url detector
This commit is contained in:
parent
15366b8345
commit
d8f48cbd3e
@ -48,7 +48,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if let MessageKind::Text { ref data, .. } = message.kind {
|
if let MessageKind::Text { ref data, .. } = message.kind {
|
||||||
let is_url = Url::parse(&data).is_ok();
|
let is_url = false; //Url::parse(&data).is_ok(); // TODO: read this data from the Telegram json data (utf16 idxes..)
|
||||||
let formatted_text = if is_url {
|
let formatted_text = if is_url {
|
||||||
format!("<ul><li><a href=\"{}\">{}</a></li></ul>", data, data)
|
format!("<ul><li><a href=\"{}\">{}</a></li></ul>", data, data)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user