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
1 changed files with 3 additions and 3 deletions

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();