mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-24 18:15:19 +00:00
doc fixes
This commit is contained in:
parent
5b0d0b9ab2
commit
d16877251a
|
@ -237,7 +237,7 @@ defmodule Pleroma.Web.ActivityPub.Utils 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 @@ defmodule Pleroma.Web.ActivityPub.Utils 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,
|
||||
|
|
Loading…
Reference in a new issue