Update Inbox, add user domain blocks to Undo handler

This commit is contained in:
Daniel Supernault 2023-12-18 22:49:31 -07:00
parent e32e50da7b
commit 491468612f
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -836,6 +836,9 @@ class Inbox
if(!$status) {
return;
}
if(AccountService::blocksDomain($status->profile_id, $profile->domain) == true) {
return;
}
FeedRemoveRemotePipeline::dispatch($status->id, $status->profile_id)->onQueue('feed');
Status::whereProfileId($profile->id)
->whereReblogOfId($status->id)
@ -857,6 +860,9 @@ class Inbox
if(!$following) {
return;
}
if(AccountService::blocksDomain($following->id, $profile->domain) == true) {
return;
}
Follower::whereProfileId($profile->id)
->whereFollowingId($following->id)
->delete();
@ -882,6 +888,9 @@ class Inbox
if(!$status) {
return;
}
if(AccountService::blocksDomain($status->profile_id, $profile->domain) == true) {
return;
}
Like::whereProfileId($profile->id)
->whereStatusId($status->id)
->forceDelete();