Match proper number of values from unannounce

This commit is contained in:
Francis Dinh 2018-05-09 00:04:14 -04:00
parent 54f6628590
commit 900c735467

View 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