Update Inbox, delete notifications on tombstone

This commit is contained in:
Daniel Supernault 2021-06-18 05:24:26 -06:00
parent cfccb6f251
commit ef63124d88
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -500,6 +500,10 @@ class Inbox
->orWhere('url', $id)
->orWhere('object_url', $id)
->first();
Notification::whereActorId($profile->id)
->whereItemType('App\Status')
->whereItemId($status->id)
->forceDelete();
if(!$status) {
return;
}