Update ActivityPub inbox, properly handle eloquent deletions to trigger observer events

pull/6348/head
Daniel Supernault 11 months ago
parent d7212d75d0
commit 85edc9ddd5
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -775,6 +775,13 @@ class Inbox
if (! $profile || $profile->private_key != null) {
return;
}
Notification::whereActorId($profile->id)
->chunkById(100, function ($notifications) {
foreach ($notifications as $notification) {
$notification->forceDelete();
}
});
DeleteRemoteProfilePipeline::dispatch($profile)->onQueue('inbox');
return;

Loading…
Cancel
Save