diff --git a/Telegram/SourceFiles/info/profile/info_profile_values.cpp b/Telegram/SourceFiles/info/profile/info_profile_values.cpp index 991f6f7e5..dfc28d1be 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_values.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_values.cpp @@ -52,6 +52,7 @@ auto PlainUsernameValue(not_null peer) { }); } +/* void StripExternalLinks(TextWithEntities &text) { const auto local = [](const QString &url) { return !UrlRequiresConfirmation(QUrl::fromUserInput(url)); @@ -69,6 +70,7 @@ void StripExternalLinks(TextWithEntities &text) { ranges::remove_if(text.entities, notLocal), text.entities.end()); } +*/ } // namespace @@ -152,14 +154,18 @@ TextWithEntities AboutWithEntities( } else if (isBot) { flags |= TextParseHashtags | TextParseBotCommands; } + /* const auto stripExternal = peer->isChat() || peer->isMegagroup() || (user && !isBot); + */ auto result = TextWithEntities{ value }; TextUtilities::ParseEntities(result, flags); + /* if (stripExternal) { StripExternalLinks(result); } + */ return result; }