Daniel Supernault 2 anni fa
parent
commit
aff488168b
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      app/Util/ActivityPub/Inbox.php

+ 7 - 0
app/Util/ActivityPub/Inbox.php

@@ -191,6 +191,13 @@ class Inbox
 		if(!$actor || $actor->domain == null) {
 			return;
 		}
+
+		if($actor->followers_count == 0) {
+			if(FollowerService::followerCount($actor->id, true) == 0) {
+				return;
+			}
+		}
+
 		if(!isset($activity['to'])) {
 			return;
 		}