Fix federation of unreblog activity
authorFrancis Dinh <normandy@firemail.cc>
Sat, 21 Apr 2018 03:09:19 +0000 (23:09 -0400)
committerFrancis Dinh <normandy@firemail.cc>
Sat, 21 Apr 2018 03:09:19 +0000 (23:09 -0400)
lib/pleroma/web/activity_pub/activity_pub.ex

index dccd2e7577c2c8c97497182bc03915ba2f800a1f..215ddc57a6ed17835e0f952f9828dd1ab150841a 100644 (file)
@@ -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}