瀏覽代碼

Update AP Inbox

Daniel Supernault 2 年之前
父節點
當前提交
aff488168b
共有 1 個文件被更改,包括 7 次插入0 次删除
  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;
 		}