Update Inbox, add user domain blocks to Announce handler

This commit is contained in:
Daniel Supernault 2023-12-18 22:42:21 -07:00
parent c89dc45e8d
commit 279fb28e2a
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1
1 changed files with 4 additions and 0 deletions

View File

@ -589,6 +589,10 @@ class Inbox
return;
}
if(AccountService::blocksDomain($parent->profile_id, $actor->domain) == true) {
return;
}
$blocks = UserFilterService::blocks($parent->profile_id);
if($blocks && in_array($actor->id, $blocks)) {
return;