View Source Bonfire.Social.LivePush (Bonfire v0.9.11-social-beta.6)

Handles pushing activities (via PubSub and/or email) to active feeds and notifications

Summary

Functions

Sends a notification about an activity to a list of users, excluding the author/subject

Receives an activity with a nested object, or vice versa, uses PubSub to pushes to feeds and optionally notifications

Receives an activity and object, uses PubSub to pushes to feeds and optionally notifications, and returns an Activity.

Functions

hide_activity(feed_id, activity_id)

notify(activity, opts)

notify(subject, verb, object, opts)

notify_of_message(subject, verb, object, users)

notify_users(subject, verb, object, users)

Sends a notification about an activity to a list of users, excluding the author/subject

prepare_activity(activity, opts \\ [])

push_activity(to_feeds, activity, opts \\ [])

Receives an activity with a nested object, or vice versa, uses PubSub to pushes to feeds and optionally notifications

push_activity_object(to_notify, parent_object, object, opts)

Receives an activity and object, uses PubSub to pushes to feeds and optionally notifications, and returns an Activity.