From aff488168b4c97b1611da5ffd63d9148fdd4494c Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 24 Dec 2022 05:48:47 -0700 Subject: [PATCH] Update AP Inbox --- app/Util/ActivityPub/Inbox.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Util/ActivityPub/Inbox.php b/app/Util/ActivityPub/Inbox.php index 55fb6368..f04e1b01 100644 --- a/app/Util/ActivityPub/Inbox.php +++ b/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; }