diff --git a/Telegram/SourceFiles/info/profile/info_profile_values.cpp b/Telegram/SourceFiles/info/profile/info_profile_values.cpp index d4c57b1a2..b230ff59d 100644 --- a/Telegram/SourceFiles/info/profile/info_profile_values.cpp +++ b/Telegram/SourceFiles/info/profile/info_profile_values.cpp @@ -70,6 +70,7 @@ auto PlainPrimaryUsernameValue(not_null peer) { }) | rpl::flatten_latest(); } +/* void StripExternalLinks(TextWithEntities &text) { const auto local = [](const QString &url) { return !UrlRequiresConfirmation(QUrl::fromUserInput(url)); @@ -87,6 +88,7 @@ void StripExternalLinks(TextWithEntities &text) { ranges::remove_if(text.entities, notLocal), text.entities.end()); } +*/ } // namespace @@ -223,6 +225,7 @@ TextWithEntities AboutWithEntities( } else if (isBot) { flags |= TextParseHashtags | TextParseBotCommands; } + /* const auto stripExternal = peer->isChat() || peer->isMegagroup() || (user && !isBot && !isPremium); @@ -231,11 +234,14 @@ TextWithEntities AboutWithEntities( const auto used = (!user || isPremium || value.size() <= limit) ? value : value.mid(0, limit) + "..."; + */ auto result = TextWithEntities{ value }; TextUtilities::ParseEntities(result, flags); + /* if (stripExternal) { StripExternalLinks(result); } + */ return result; }