View Source ActivityPub.Federator.Fetcher (bonfire_umbrella v0.9.10-cooperation-beta.36)

Handles fetching AS2 objects from remote instances.

Summary

Functions

Returns true if the distance to target object does not exceed max configured value. Serves to prevent fetching of very long threads, especially useful on smaller instances. Addresses memory leaks on recursive replies fetching. Applies to fetching of both ancestor (reply-to) and child (reply) objects.

Checks if an object exists in the AP and Adapter databases and fetches and creates it if not.

Fetches an AS2 object from remote AP ID.

Checks if an object exists in the AP database and fetches it if not (but does not send to Adapter).

Checks if an object exists in the AP database and prepares it if not (local objects only).

Fetch a list of objects within recursion limits. Used for reply_to/context, and replies or similar collections.

Functions

Link to this function

allowed_recursion?(distance, max_recursion \\ nil)

View Source

Returns true if the distance to target object does not exceed max configured value. Serves to prevent fetching of very long threads, especially useful on smaller instances. Addresses memory leaks on recursive replies fetching. Applies to fetching of both ancestor (reply-to) and child (reply) objects.

Link to this function

enqueue_fetch(id, worker_attrs \\ %{})

View Source
Link to this function

fetch_collection(ap_id, opts \\ [])

View Source
Link to this function

fetch_fresh_object_from_id(id, opts \\ [])

View Source
Link to this function

fetch_object_from_id(id, opts \\ [])

View Source

Checks if an object exists in the AP and Adapter databases and fetches and creates it if not.

Link to this function

fetch_objects_from_id(ids, opts \\ [])

View Source
Link to this function

fetch_outbox(actor, opts \\ [fetch_collection: :async])

View Source
Link to this function

fetch_remote_object_from_id(id, options \\ [])

View Source

Fetches an AS2 object from remote AP ID.

Link to this function

fetch_replies(actor, opts \\ [fetch_collection: :async])

View Source
Link to this function

fetch_thread(actor, opts \\ [fetch_collection: :async])

View Source
Link to this function

get_cached_object_or_fetch_ap_id(id, opts \\ [])

View Source

Checks if an object exists in the AP database and fetches it if not (but does not send to Adapter).

Link to this function

get_cached_object_or_fetch_pointer_id(pointer, opts \\ [])

View Source

Checks if an object exists in the AP database and prepares it if not (local objects only).

Link to this function

maybe_fetch(entries, opts \\ [])

View Source

Fetch a list of objects within recursion limits. Used for reply_to/context, and replies or similar collections.

Link to this function

maybe_parse_header_url(str, type)

View Source