ソースを参照

Update Inbox, remove broken Undo.Announce

Daniel Supernault 6 年 前
コミット
772bbf5f4b
1 ファイル変更0 行追加11 行削除
  1. 0 11
      app/Util/ActivityPub/Inbox.php

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

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