Change argument order and call correct # of args
authorFrancis Dinh <normandy@firemail.cc>
Wed, 9 May 2018 03:59:36 +0000 (23:59 -0400)
committerFrancis Dinh <normandy@firemail.cc>
Wed, 9 May 2018 03:59:36 +0000 (23:59 -0400)
lib/pleroma/web/activity_pub/activity_pub.ex
lib/pleroma/web/activity_pub/transmogrifier.ex

index 334cfcc5b15aabca6d87d911c2f4c042bd3c5ee4..95671ec3b0ee4e36378822aa453db4a15be0c238 100644 (file)
@@ -148,8 +148,8 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
   def unannounce(
         %User{} = actor,
         %Object{} = object,
-        local \\ true,
-        activity_id \\ nil
+        activity_id \\ nil,
+        local \\ true
       ) do
     with %Activity{} = announce_activity <- get_existing_announce(actor.ap_id, object),
          unannounce_data <- make_unannounce_data(actor, announce_activity, activity_id),
index 8785ddaa9df1635e446d707e7621e6aea4a4b7b4..f8fb79ac07aa0da1f549a7b0bf5aa358f906609e 100644 (file)
@@ -231,7 +231,7 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
     with %User{} = actor <- User.get_or_fetch_by_ap_id(actor),
          {:ok, object} <-
            get_obj_helper(object_id) || ActivityPub.fetch_object_from_id(object_id),
-         {:ok, activity} <- ActivityPub.unannounce(object, false) do
+         {:ok, activity} <- ActivityPub.unannounce(actor, object, id, false) do
       {:ok, activity}
     else
       e -> :error