View Source ActivityPub.Utils (Bonfire v0.9.10-classic-beta.169)
Misc functions used for federation
Summary
Functions
Takes a string and returns true if it is a valid UUID (Universally Unique Identifier)
conditionally update a map
Handles multiple cases where the input value is of a different type (atom, list, tuple, etc.) and returns a string representation of it.
Determines if an object or an activity is public.
Takes a map or keyword list, and returns a map with any atom keys converted to string keys. It can optionally do so recursively.
Functions
Takes a string and returns true if it is a valid UUID (Universally Unique Identifier)
json_with_cache(conn \\ nil, get_fun, cache_bucket, id, ret_fn \\ &return_json/4, opts \\ [])
View Sourceconditionally update a map
Handles multiple cases where the input value is of a different type (atom, list, tuple, etc.) and returns a string representation of it.
Determines if an object or an activity is public.
Takes a map or keyword list, and returns a map with any atom keys converted to string keys. It can optionally do so recursively.