Explorar el Código

Update AP Inbox

Daniel Supernault hace 2 años
padre
commit
aff488168b
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  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;
 		}