Remove handler for incoming undos with object references
authorFrancis Dinh <normandy@firemail.cc>
Sun, 20 May 2018 01:34:30 +0000 (21:34 -0400)
committerFrancis Dinh <normandy@firemail.cc>
Sun, 20 May 2018 01:34:30 +0000 (21:34 -0400)
lib/pleroma/web/activity_pub/transmogrifier.ex

index fe0294c5c5b4080078a077edda91e703f4d0a1c6..887ffe2d0a26a8f7844256a2e1981c028f5ff580 100644 (file)
@@ -259,13 +259,6 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
     end
   end
 
-  def handle_incoming(%{"type" => "Undo", "object" => object_id} = data) do
-    object = Object.get_by_ap_id(object_id).data
-    data = Map.put(data, "object", object)
-
-    handle_incoming(data)
-  end
-
   def handle_incoming(
         %{"type" => "Block", "object" => blocked, "actor" => blocker, "id" => id} = data
       ) do