View Source Bonfire.Common.URIs (bonfire_umbrella v0.9.8-cooperation-beta.31)

Summary

Functions

Return the homepage URI (as struct) of the local instance

Return the homepage URL (as string) of the local instance

Returns the canonical URL (i.e. the one used for ActivityPub federation) of an object

Returns true if the given string is a valid URI.

Returns the path (URL on the local instance) for the given object/struct (eg. a User), view or schema module, or path name (atom defined in routes), along with optional arguments.

Returns the full URL (including domain and path) for a given object, module, or path name.

Validates a URI string.

Functions

Link to this function

base_domain(uri_or_endpoint_or_conn \\ nil)

View Source
Link to this function

base_uri(conn_or_socket \\ nil)

View Source

Return the homepage URI (as struct) of the local instance

Link to this function

base_url(conn_or_socket_or_uri \\ nil)

View Source

Return the homepage URL (as string) of the local instance

Returns the canonical URL (i.e. the one used for ActivityPub federation) of an object

Link to this function

fallback(id, type, args)

View Source

Returns true if the given string is a valid URI.

Link to this function

maybe_generate_canonical_url(thing)

View Source
Link to this function

path(view_module_or_path_name_or_object, args \\ [], opts \\ [])

View Source

Returns the path (URL on the local instance) for the given object/struct (eg. a User), view or schema module, or path name (atom defined in routes), along with optional arguments.

Link to this function

path_by_id(id, args, object, opts)

View Source
Link to this function

remote_canonical_url(object)

View Source
Link to this function

url_path(view_module_or_path_name_or_object, args \\ [])

View Source

Returns the full URL (including domain and path) for a given object, module, or path name.

Validates a URI string.