Revert "Rename make_unannounce_data helper to make_undo_data"

This reverts commit c649ca8958.
This commit is contained in:
Francis Dinh 2018-04-22 19:42:28 -04:00
parent c649ca8958
commit b1742eca42
2 changed files with 3 additions and 3 deletions

View File

@ -142,7 +142,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
def unannounce(%User{} = actor, %Object{} = object, local \\ true) do
with %Activity{} = activity <- get_existing_announce(actor.ap_id, object),
unannounce_data <- make_undo_data(actor, activity),
unannounce_data <- make_unannounce_data(actor, activity),
{:ok, unannounce_activity} <- insert(unannounce_data, local),
:ok <- maybe_federate(activity),
{:ok, _activity} <- Repo.delete(activity),

View File

@ -279,9 +279,9 @@ defmodule Pleroma.Web.ActivityPub.Utils do
end
@doc """
Make undo activity data for the given actor and object
Make unannounce activity data for the given actor and object
"""
def make_undo_data(
def make_unannounce_data(
%User{ap_id: ap_id} = user,
%Activity{data: %{"id" => id, "context" => context}} = activity
) do