Ver código fonte

Update AP Inbox

Daniel Supernault 2 anos atrás
pai
commit
aff488168b
1 arquivos alterados com 7 adições e 0 exclusões
  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;
 		}