mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-26 09:46:49 +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('url', $id)
|
||||||
->orWhere('object_url', $id)
|
->orWhere('object_url', $id)
|
||||||
->first();
|
->first();
|
||||||
|
if(!$status) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
Notification::whereActorId($profile->id)
|
Notification::whereActorId($profile->id)
|
||||||
->whereItemType('App\Status')
|
->whereItemType('App\Status')
|
||||||
->whereItemId($status->id)
|
->whereItemId($status->id)
|
||||||
->forceDelete();
|
->forceDelete();
|
||||||
if(!$status) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$status->directMessage()->delete();
|
$status->directMessage()->delete();
|
||||||
$status->media()->delete();
|
$status->media()->delete();
|
||||||
$status->likes()->delete();
|
$status->likes()->delete();
|
||||||
|
|
Loading…
Reference in a new issue