Match proper number of values from unannounce
authorFrancis Dinh <normandy@firemail.cc>
Wed, 9 May 2018 04:04:14 +0000 (00:04 -0400)
committerFrancis Dinh <normandy@firemail.cc>
Wed, 9 May 2018 04:04:14 +0000 (00:04 -0400)
lib/pleroma/web/activity_pub/transmogrifier.ex

index f8fb79ac07aa0da1f549a7b0bf5aa358f906609e..586fe2eb2567bb8e576a03aa9c352c6682ec203c 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(actor, object, id, false) do
+         {:ok, activity, _, _} <- ActivityPub.unannounce(actor, object, id, false) do
       {:ok, activity}
     else
       e -> :error