Don't show "(AP)" at platform names anymore

This commit is contained in:
Michael 2024-10-26 15:36:41 +00:00
parent 3b6030346f
commit 676f54b7b2

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;