]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/APContact.php
Replace reference to post plink by author base URL
[friendica.git] / src / Model / APContact.php
index 2a5b89928f80597cddaf7ba8908d2f9fcf35cde8..c49017b595b120d3730e3d885417a7d4fedc4e27 100644 (file)
@@ -584,6 +584,14 @@ class APContact
         */
        public static function isRelay(array $apcontact): bool
        {
+               if (in_array($apcontact['type'], ['Person', 'Organization'])) {
+                       return false;
+               }
+
+               if (($apcontact['type'] == 'Service') && empty($apcontact['outbox']) && empty($apcontact['sharedinbox']) && empty($apcontact['following']) && empty($apcontact['followers']) && empty($apcontact['statuses_count'])) {
+                       return true;
+               }
+
                if (empty($apcontact['nick']) || $apcontact['nick'] != 'relay') {
                        return false;
                }