View Source Bonfire.Social.Activities (bonfire_umbrella v0.3.6-classic-beta.7)

Link to this section Summary

Functions

Outputs the names all object verbs, for the purpose of adding to the localisation strings, as long as the output is piped through to localise_strings/1 at compile time.

Create an Activity NOTE: you will usually want to use cast/3 instead

Delete activities, using specific filters

Delete an activity (usage by things like unlike)

Get an activity by its ID

Get an activity by its object ID (usually a create activity)

Link to this section Functions

Link to this function

activity_preloads(query, opts)

View Source
Link to this function

activity_preloads(query, preloads, opts)

View Source
Link to this function

activity_under_object(top_object)

View Source
Link to this function

activity_under_object(activity, object)

View Source

Outputs the names all object verbs, for the purpose of adding to the localisation strings, as long as the output is piped through to localise_strings/1 at compile time.

Link to this function

as_permitted_for(q, opts \\ [], verbs \\ [:see, :read])

View Source
Link to this function

build_assoc(thing, verb, subject)

View Source
Link to this function

build_assoc(thing, verb, subject, object)

View Source
Link to this function

by_subject_verb_object_q(subject, verb, object)

View Source
Link to this function

cast(changeset, verb, creator, opts)

View Source
Link to this function

create(subject, verb, object, activity_id \\ nil)

View Source

Create an Activity NOTE: you will usually want to use cast/3 instead

Delete activities, using specific filters

Link to this function

delete_by_subject_verb_object(subject, verb, object)

View Source

Delete an activity (usage by things like unlike)

Get an activity by its ID

Link to this function

load_object(id_or_pointer)

View Source
Link to this function

object_from_activity(object_or_activity)

View Source
Link to this function

object_preload_activity(object, verb \\ :create)

View Source
Link to this function

object_preload_create_activity(object)

View Source
Link to this function

put_assoc(changeset, verb, subject)

View Source
Link to this function

put_assoc(changeset, verb, subject, object)

View Source
Link to this function

query(filters \\ [], opts_or_current_user \\ [])

View Source
Link to this function

query_object_preload_activity(q, verb \\ :create, object_id_field \\ :id, opts \\ [])

View Source
Link to this function

query_object_preload_create_activity(q, opts \\ [])

View Source

Get an activity by its object ID (usually a create activity)

Callback implementation for Bonfire.Common.ContextModule.schema_module/0.

Link to this function

verb_maybe_modify(verb, activity)

View Source