Pleroma v1.1.9-10-g42f76306+dev Pleroma.Web.ActivityPub.Utils View Source
Link to this section Summary
Functions
Fetches the OrderedCollection/OrderedCollectionPage from from
, limiting the amount of pages fetched after
the first one to pages_left
pages.
If the amount of pages is higher than the collection has, it returns whatever was there.
Retruns an existing announce activity if the notice has already been announced
Returns an existing like if a user already liked an object
Inserts a full object if it is contained in an activity.
Adds an id and a published data if they aren't there, also adds it to an included object
Adds an id and published date if they aren't there.
Make announce activity data for the given actor and object
Makes a follow activity data for the given follower and followed
Make unannounce activity data for the given actor and object
Enqueues an activity for federation if it's local
Updates a follow activity's state (for locked accounts).
Link to this section Functions
add_like_to_object(activity, object)
View Sourceadd_like_to_object(Pleroma.Activity.t(), Pleroma.Object.t()) :: {:ok, Pleroma.Object.t()} | {:error, Ecto.Changeset.t()}
Fetches the OrderedCollection/OrderedCollectionPage from from
, limiting the amount of pages fetched after
the first one to pages_left
pages.
If the amount of pages is higher than the collection has, it returns whatever was there.
Retruns an existing announce activity if the notice has already been announced
get_existing_like(actor, map)
View Sourceget_existing_like(String.t(), map()) :: Pleroma.Activity.t() | nil
Returns an existing like if a user already liked an object
Inserts a full object if it is contained in an activity.
Adds an id and a published data if they aren't there, also adds it to an included object
Adds an id and published date if they aren't there.
Make announce activity data for the given actor and object
Makes a follow activity data for the given follower and followed
make_like_data(actor, object, activity_id)
View Sourcemake_like_data(Pleroma.User.t(), map(), String.t()) :: map()
Make unannounce activity data for the given actor and object
make_unfollow_data(follower, followed, follow_activity, activity_id)
View SourceEnqueues an activity for federation if it's local
remove_like_from_object(activity, object)
View Sourceremove_like_from_object(Pleroma.Activity.t(), Pleroma.Object.t()) :: {:ok, Pleroma.Object.t()} | {:error, Ecto.Changeset.t()}
update_element_in_object(property, element, object)
View Sourceupdate_element_in_object(String.t(), [any()], Pleroma.Object.t()) :: {:ok, Pleroma.Object.t()} | {:error, Ecto.Changeset.t()}
Updates a follow activity's state (for locked accounts).