mirror of
https://github.com/friendica/friendica
synced 2024-12-23 02:00:17 +00:00
Merge pull request #14502 from annando/platform-name
Don't show "(AP)" at platform names anymore
This commit is contained in:
commit
561ac9e4ee
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