Skip to content
Snippets Groups Projects
Commit d1687725 authored by normandy's avatar normandy
Browse files

doc fixes

parent 5b0d0b9a
No related branches found
No related tags found
No related merge requests found
......@@ -237,7 +237,7 @@ def fetch_latest_follow(%User{ap_id: follower_id}, %User{ap_id: followed_id}) do
#### Announce-related helpers
@doc """
Make announce activity data for the given actor and object
Retruns an existing announce activity if the notice has already been announced
"""
def get_existing_announce(actor, %{data: %{"id" => id}}) do
query =
......@@ -258,6 +258,9 @@ def get_existing_announce(actor, %{data: %{"id" => id}}) do
Repo.one(query)
end
@doc """
Make announce activity data for the given actor and object
"""
def make_announce_data(
%User{ap_id: ap_id} = user,
%Object{data: %{"id" => id}} = object,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment