mirror of
https://github.com/friendica/friendica
synced 2025-05-12 17:44:10 +02:00
Improvements for relais like relay.fedi.buzz
This commit is contained in:
parent
06df62a2b5
commit
639d160c24
3 changed files with 11 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue