X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FAPContact.php;h=c49017b595b120d3730e3d885417a7d4fedc4e27;hb=f2c1ecd19bb344137a91faab58d9a2524e0c8893;hp=2a5b89928f80597cddaf7ba8908d2f9fcf35cde8;hpb=9678618dd42ea1877d24db683ef79b3b09817584;p=friendica.git diff --git a/src/Model/APContact.php b/src/Model/APContact.php index 2a5b89928f..c49017b595 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -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; }