]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/ContactSelector.php
Fix DOMNodeList length compatibility with PHP <7.2 in Content\Text\HTML
[friendica.git] / src / Content / ContactSelector.php
index e327069b33fd86653bad93e0b9a661c1c3a1bcc3..2b86a6e75df663291b5f6bbd1fdaa7fac437928f 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']);
@@ -231,8 +231,7 @@ class ContactSelector
                        ''                     => L10n::t('No answer'),
                        'Single'               => L10n::t('Single'),
                        'Lonely'               => L10n::t('Lonely'),
-                       'Available'            => L10n::t('Available'),
-                       'Unavailable'          => L10n::t('Unavailable'),
+                       'In a relation'        => L10n::t('In a relation'),
                        'Has crush'            => L10n::t('Has crush'),
                        'Infatuated'           => L10n::t('Infatuated'),
                        'Dating'               => L10n::t('Dating'),