]> git.mxchange.org Git - friendica.git/commitdiff
Don't show "(AP)" at platform names anymore
authorMichael <heluecht@pirati.ca>
Sat, 26 Oct 2024 15:36:41 +0000 (15:36 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 26 Oct 2024 15:36:41 +0000 (15:36 +0000)
src/Content/ContactSelector.php

index 0d5101b1f9b59bd1c1ae6dd80c68af380f6603d2..52cc980fc38861c481d183eb1f7f687ba3a87357 100644 (file)
@@ -155,15 +155,15 @@ class ContactSelector
 
                        if (!empty($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));
+               } elseif (in_array($network, ['', $protocol]) && ($network == Protocol::DFRN)) {
+                       $networkname .= ' (DFRN)';
+               } elseif (in_array($network, ['', $protocol]) && ($network == Protocol::DIASPORA) && ($platform != 'diaspora')) {
+                       $networkname .= ' (Diaspora)';
                }
 
                return $networkname;