forked from AkkomaGang/akkoma
doc fixes
This commit is contained in:
parent
5b0d0b9ab2
commit
d16877251a
1 changed files with 4 additions and 1 deletions
|
@ -237,7 +237,7 @@ def fetch_latest_follow(%User{ap_id: follower_id}, %User{ap_id: followed_id}) do
|
||||||
#### Announce-related helpers
|
#### Announce-related helpers
|
||||||
|
|
||||||
@doc """
|
@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
|
def get_existing_announce(actor, %{data: %{"id" => id}}) do
|
||||||
query =
|
query =
|
||||||
|
@ -258,6 +258,9 @@ def get_existing_announce(actor, %{data: %{"id" => id}}) do
|
||||||
Repo.one(query)
|
Repo.one(query)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@doc """
|
||||||
|
Make announce activity data for the given actor and object
|
||||||
|
"""
|
||||||
def make_announce_data(
|
def make_announce_data(
|
||||||
%User{ap_id: ap_id} = user,
|
%User{ap_id: ap_id} = user,
|
||||||
%Object{data: %{"id" => id}} = object,
|
%Object{data: %{"id" => id}} = object,
|
||||||
|
|
Loading…
Reference in a new issue