Merge pull request #14502 from annando/platform-name

Don't show "(AP)" at platform names anymore
This commit is contained in:
Tobias Diekershoff 2024-10-27 07:23:47 +01:00 committed by GitHub
commit 561ac9e4ee
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,15 +155,15 @@ class ContactSelector
if (!empty($platform)) { if (!empty($platform)) {
$networkname = $platform; $networkname = $platform;
if ($network == Protocol::ACTIVITYPUB) {
$networkname .= ' (AP)';
}
} }
} }
if (!empty($protocol) && ($protocol != $network)) { if (!empty($protocol) && ($protocol != $network) && $network != Protocol::DFRN) {
$networkname = DI::l10n()->t('%s (via %s)', $networkname, self::networkToName($protocol)); $networkname = DI::l10n()->t('%s (via %s)', $networkname, self::networkToName($protocol));
} elseif (in_array($network, ['', $protocol]) && ($network == Protocol::DFRN)) {
$networkname .= ' (DFRN)';
} elseif (in_array($network, ['', $protocol]) && ($network == Protocol::DIASPORA) && ($platform != 'diaspora')) {
$networkname .= ' (Diaspora)';
} }
return $networkname; return $networkname;