mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-24 16:53:17 +00:00
Update Inbox, remove broken Undo.Announce
This commit is contained in:
parent
bca53ae40e
commit
772bbf5f4b
1 changed files with 0 additions and 11 deletions
|
@ -322,17 +322,6 @@ class Inbox
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'Announce':
|
case 'Announce':
|
||||||
$parent = Helpers::statusFirstOrFetch($obj['object']);
|
|
||||||
$status = Status::whereProfileId($profile->id)
|
|
||||||
->whereReblogOfId($parent->id)
|
|
||||||
->firstOrFail();
|
|
||||||
Notification::whereProfileId($parent->profile->id)
|
|
||||||
->whereActorId($profile->id)
|
|
||||||
->whereAction('share')
|
|
||||||
->whereItemId($status->id)
|
|
||||||
->whereItemType('App\Status')
|
|
||||||
->forceDelete();
|
|
||||||
$status->forceDelete();
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'Block':
|
case 'Block':
|
||||||
|
|
Loading…
Reference in a new issue