mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:00:16 +00:00
Don't show "(AP)" at platform names anymore
This commit is contained in:
parent
3b6030346f
commit
676f54b7b2
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue