mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-21 22:11:26 +00:00
Update Inbox, fix tombstone bug
This commit is contained in:
parent
5a3384d0e4
commit
929ff5eb01
1 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue