Update Inbox, fix tombstone bug

pull/2815/head
Daniel Supernault 4 years ago
parent 5a3384d0e4
commit 929ff5eb01
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

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

Loading…
Cancel
Save