Update Inbox, fix tombstone bug

This commit is contained in:
Daniel Supernault 2021-06-23 19:57:39 -06:00
parent 5a3384d0e4
commit 929ff5eb01
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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