1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-27 02:06:52 +00:00

Merge pull request #918 from pixelfed/frontend-ui-refactor

Update Inbox, remove broken Undo.Announce
This commit is contained in:
daniel 2019-03-01 18:59:15 -07:00 committed by GitHub
commit dd1f49ebbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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':