mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update Inbox, add user domain blocks to Direct Message handler
This commit is contained in:
parent
e7c08fbbb2
commit
a7f96d8194
1 changed files with 5 additions and 1 deletions
|
@ -372,7 +372,11 @@ class Inbox
|
||||||
->whereUsername(array_last(explode('/', $activity['to'][0])))
|
->whereUsername(array_last(explode('/', $activity['to'][0])))
|
||||||
->firstOrFail();
|
->firstOrFail();
|
||||||
|
|
||||||
if(in_array($actor->id, $profile->blockedIds()->toArray())) {
|
if(!$actor || in_array($actor->id, $profile->blockedIds()->toArray())) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(AccountService::blocksDomain($profile->id, $actor->domain) == true) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue