]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/ContactSelector.php
New constant for federated protocols
[friendica.git] / src / Content / ContactSelector.php
index e327069b33fd86653bad93e0b9a661c1c3a1bcc3..22bfe08b52a048b1bec846770df9d4b4ff51d2f1 100644 (file)
@@ -105,7 +105,7 @@ class ContactSelector
 
                $networkname = str_replace($search, $replace, $network);
 
-               if ((in_array($network, [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA, Protocol::OSTATUS])) && ($profile != "")) {
+               if ((in_array($network, Protocol::FEDERATED)) && ($profile != "")) {
                        // Create the server url out of the profile url
                        $parts = parse_url($profile);
                        unset($parts['path']);