]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/APContact.php
Funkwhale context file moved
[friendica.git] / src / Model / APContact.php
index ba2e3c9734fdff020a3dcc6e35958cb0f4f44ce1..841c028909b65c56913487844ce767fcf00a502e 100644 (file)
@@ -539,6 +539,13 @@ class APContact
                HTTPSignature::setInboxStatus($url, true, $shared);
        }
 
+       /**
+        * Check if the apcontact is a relay account
+        *
+        * @param array $apcontact
+        *
+        * @return bool 
+        */
        public static function isRelay(array $apcontact): bool
        {
                if ($apcontact['nick'] != 'relay') {
@@ -549,7 +556,7 @@ class APContact
                        return true;
                }
 
-               if (in_array($apcontact['type'], ['Group', 'Service']) && ($apcontact['nick'] == 'relay') && is_null($apcontact['outbox'])) {
+               if (in_array($apcontact['type'], ['Group', 'Service']) && is_null($apcontact['outbox'])) {
                        return true;
                }