mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Don't cut bio value, show what server returned.
This commit is contained in:
@@ -203,12 +203,7 @@ TextWithEntities AboutWithEntities(
|
|||||||
const auto stripExternal = peer->isChat()
|
const auto stripExternal = peer->isChat()
|
||||||
|| peer->isMegagroup()
|
|| peer->isMegagroup()
|
||||||
|| (user && !isBot && !isPremium);
|
|| (user && !isBot && !isPremium);
|
||||||
const auto limit = Data::PremiumLimits(&peer->session())
|
auto result = TextWithEntities{ value };
|
||||||
.aboutLengthDefault();
|
|
||||||
const auto used = (!user || isPremium || value.size() <= limit)
|
|
||||||
? value
|
|
||||||
: value.mid(0, limit) + "...";
|
|
||||||
auto result = TextWithEntities{ used };
|
|
||||||
TextUtilities::ParseEntities(result, flags);
|
TextUtilities::ParseEntities(result, flags);
|
||||||
if (stripExternal) {
|
if (stripExternal) {
|
||||||
StripExternalLinks(result);
|
StripExternalLinks(result);
|
||||||
|
Reference in New Issue
Block a user