Add support for cashtag in Twitter link preview.
This commit is contained in:
parent
3a579dd5cb
commit
9c04dc47ad
@ -1238,6 +1238,9 @@ tl_object_ptr<td_api::webPage> WebPagesManager::get_web_page_object(WebPageId we
|
||||
if (entity.type == MessageEntity::Type::Hashtag) {
|
||||
return PSTRING() << "https://twitter.com/hashtag/" << url_encode(text.substr(1));
|
||||
}
|
||||
if (entity.type == MessageEntity::Type::Cashtag) {
|
||||
return PSTRING() << "https://twitter.com/search?q=" << url_encode(text) << "&src=cashtag_click";
|
||||
}
|
||||
return string();
|
||||
});
|
||||
} else if (host == "t.me" || host == "telegram.me" || host == "telegram.dog" || host == "telesco.pe") {
|
||||
|
Loading…
Reference in New Issue
Block a user