View Source ActivityPub.Object (Bonfire v0.9.10-classic-beta.169)

Summary

Functions

Retruns an existing announce activity if the notice has already been announced

Returns an existing like if a user already liked an object

Prepares a struct to be inserted into the objects table

Updates a follow activity's state (for locked accounts).

Types

@type t() :: %ActivityPub.Object{
  __meta__: term(),
  activity: term(),
  data: term(),
  id: term(),
  inserted_at: term(),
  is_object: term(),
  local: term(),
  object: term(),
  pointer: term(),
  pointer_id: term(),
  public: term(),
  updated_at: term()
}

Functions

Link to this function

changeset(object, attrs)

View Source
Link to this function

common_changeset(object)

View Source
Link to this function

do_update_existing(object, attrs)

View Source
Link to this function

fetch_latest_block(map1, map2)

View Source
Link to this function

fetch_latest_follow(follower_id, followed_id)

View Source
Link to this function

get_activity_for_object_ap_id(ap_id, verb \\ "Create")

View Source
Link to this function

get_existing_announce(actor, map)

View Source

Retruns an existing announce activity if the notice has already been announced

Link to this function

get_existing_like(actor, object_id)

View Source

Returns an existing like if a user already liked an object

Link to this function

get_follow_activity(follow_object, followed)

View Source
Link to this function

get_inbox(all_or_instance_or_actor_url, page \\ 1)

View Source
Link to this function

get_outbox_for_actor(ap_id, page \\ 1)

View Source
Link to this function

get_outbox_for_instance(page \\ 1)

View Source
Link to this function

invalidate_cache(object)

View Source
Link to this function

make_tombstone(map, deleted \\ DateTime.utc_now())

View Source
Link to this function

maybe_fetch(ap_id, arg2)

View Source
Link to this function

maybe_upsert(arg1, existing_object, attrs)

View Source
Link to this function

normalize(object, fetch_remote? \\ true, pointer \\ nil)

View Source
Link to this function

normalize_actors(params)

View Source
Link to this function

normalize_params(params, activity_id \\ nil, pointer \\ nil)

View Source
Link to this function

prepare_data(data, local \\ false, pointer \\ nil, associated_activity \\ nil)

View Source

Prepares a struct to be inserted into the objects table

Link to this function

self_replies_ids(object, limit)

View Source
Link to this function

swap_object_with_tombstone(object)

View Source
Link to this function

update_and_set_cache(changeset)

View Source
Link to this function

update_changeset(object, attrs)

View Source
Link to this function

update_existing(object_id, attrs)

View Source
Link to this function

update_state(activity, type, state)

View Source

Updates a follow activity's state (for locked accounts).