Explorar o código

Update Inbox, remove broken Undo.Announce

Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
772bbf5f4b
Modificáronse 1 ficheiros con 0 adicións e 11 borrados
  1. 0 11
      app/Util/ActivityPub/Inbox.php

+ 0 - 11
app/Util/ActivityPub/Inbox.php

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