Update Inbox, add user domain blocks to Story reaction handlers

pull/4834/head
Daniel Supernault 2023-12-18 22:57:53 -07:00
rodzic 491468612f
commit 8a0ceaf801
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 23740873EE6F76A1
1 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -944,6 +944,10 @@ class Inbox
return;
}
if(AccountService::blocksDomain($story->profile_id, $profile->domain) == true) {
return;
}
if(!FollowerService::follows($profile->id, $story->profile_id)) {
return;
}
@ -1014,6 +1018,10 @@ class Inbox
$actorProfile = Helpers::profileFetch($actor);
if(AccountService::blocksDomain($targetProfile->id, $actorProfile->domain) == true) {
return;
}
if(!FollowerService::follows($actorProfile->id, $targetProfile->id)) {
return;
}
@ -1132,6 +1140,11 @@ class Inbox
$actorProfile = Helpers::profileFetch($actor);
if(AccountService::blocksDomain($targetProfile->id, $actorProfile->domain) == true) {
return;
}
if(!FollowerService::follows($actorProfile->id, $targetProfile->id)) {
return;
}