mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update Inbox, add user domain blocks to Announce handler
This commit is contained in:
parent
c89dc45e8d
commit
279fb28e2a
1 changed files with 4 additions and 0 deletions
|
@ -589,6 +589,10 @@ class Inbox
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(AccountService::blocksDomain($parent->profile_id, $actor->domain) == true) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$blocks = UserFilterService::blocks($parent->profile_id);
|
$blocks = UserFilterService::blocks($parent->profile_id);
|
||||||
if($blocks && in_array($actor->id, $blocks)) {
|
if($blocks && in_array($actor->id, $blocks)) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue