1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 16:24:29 +00:00

Update Inbox, remove broken Undo.Announce

This commit is contained in:
Daniel Supernault 2019-03-01 18:58:43 -07:00
parent bca53ae40e
commit 772bbf5f4b
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -322,17 +322,6 @@ class Inbox
break;
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;
case 'Block':