View Source Bonfire.Federate.ActivityPub.AdapterUtils (Bonfire v0.9.11-social-beta.6)

Summary

Functions

without :ok / :error tuple

Functions

all_actors(activity)

all_recipients(activity, fields \\ [:to, :bto, :cc, :bcc, :audience])

ap_base_url()

apply_fun_style(fallback_module \\ __MODULE__, fun, args)

character_module(struct)

character_to_actor(character)

create_author_object(map)

create_remote_actor(actor)

determine_recipients(actor, comment)

determine_recipients(actor, comment, parent)

determine_recipients(actor, comment, to, cc)

format_actor(user_etc, type \\ "Person")

get_actor_by_ap_id(ap_id, local_instance \\ nil)

get_actor_username(obj)

get_author(author)

get_by_url_ap_id_or_username(q, opts \\ [])

get_character(q, opts \\ [])

get_character_by_ap_id(ap_id)

get_character_by_ap_id!(ap_id)

without :ok / :error tuple

get_character_by_id(id, opts \\ [skip_boundary_check: true])

get_character_by_username(username)

get_context_ap_id(arg1)

get_creator_ap_id(arg1)

get_different_creator_ap_id(character)

get_in_reply_to(comment)

get_local_actor_by_ap_id(ap_id)

get_local_character_by_ap_id(ap_id, local_instance \\ nil)

get_object_ap_id(arg1)

get_object_ap_id!(object)

get_object_or_actor_by_ap_id!(ap_id)

get_or_create_service_character(service_character_id \\ service_character_id(), service_character_username \\ service_character_username())

get_or_fetch_and_create_by_uri(q, opts \\ [])

get_or_fetch_and_create_by_username(q)

get_or_fetch_character_by_ap_id(actor_or_ap_id)

get_pointer_id_by_ap_id(ap_id)

id_or_object_id(id)

is_follow?(arg1)

is_local?(thing, opts \\ [])

is_local_collection?(ap_id)

is_local_collection_or_built_in?(ap_id)

local_actor_ids(actors)

log(l)

maybe_add_aliases(user_etc, aliases)

maybe_attach_property_value(key, url)

maybe_create_banner_object(url, actor)

maybe_create_icon_object(url, actor)

maybe_create_image_object(url, actor)

maybe_fix_image_object(url)

maybe_format_image_object_from_path(url)

maybe_pointer_for_ap_id(ap_id)

preload_peered(object)

public_uri()

return_pointable(f, opts \\ [skip_boundary_check: true])

return_pointer(id, opts)

service_character_id()

service_character_username()

the_ap_id(ap_id)