From: Francis Dinh Date: Sat, 21 Apr 2018 03:09:19 +0000 (-0400) Subject: Fix federation of unreblog activity X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=4b9f2ab526104d27441dad31820ca746bbb94f0e;p=akkoma Fix federation of unreblog activity --- diff --git a/lib/pleroma/web/activity_pub/activity_pub.ex b/lib/pleroma/web/activity_pub/activity_pub.ex index dccd2e757..215ddc57a 100644 --- a/lib/pleroma/web/activity_pub/activity_pub.ex +++ b/lib/pleroma/web/activity_pub/activity_pub.ex @@ -144,6 +144,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do with %Activity{} = activity <- get_existing_announce(actor.ap_id, object), unannounce_data <- make_unannounce_data(actor, object), {:ok, unannounce_activity} <- insert(unannounce_data, local), + :ok <- maybe_federate(activity), {:ok, _activity} <- Repo.delete(activity), {:ok, object} <- remove_announce_from_object(activity, object) do {:ok, unannounce_activity, activity, object}