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

Link to this section Summary

Functions

Remove activities from feeds, using specific filters

Remove one or more activities from all feeds

Gets a feed by id or ids or a thing/things containing an id/ids.

Return a page of Feed Activities (reverse chronological) + pagination metadata

Gets a list of feed ids this activity was published to from the database.

Computes the feed ids for get_feed_publishes/2.

Creates the underlying data for put_feed_publishes/2.

Gets a user's home feed, a combination of all feeds the user is subscribed to.

Creates a new local activity and publishes to appropriate feeds TODO: make this re-use the changeset-based code like in Epics instead of duplicating logic (currently it is only used in VF extension anyway)

Arranges for an insert changeset to also publish to feeds related to some objects.

Link to this section Functions

Link to this function

cast(changeset, feed_ids)

View Source
Link to this function

cast(changeset, creator, opts)

View Source

Remove activities from feeds, using specific filters

Link to this function

delete(objects, by_field)

View Source

Remove one or more activities from all feeds

Gets a feed by id or ids or a thing/things containing an id/ids.

Link to this function

feed_contains?(feed_name, object, opts \\ [])

View Source
Link to this function

feed_ids_and_opts(feed_name, opts)

View Source
Link to this function

feed_paginated(filters \\ [], opts \\ [])

View Source

Return a page of Feed Activities (reverse chronological) + pagination metadata

Link to this function

feed_paginated(filters, opts, query)

View Source
Link to this function

feed_with_object(feed_name, object, opts \\ [])

View Source

Gets a list of feed ids this activity was published to from the database.

Currently only used by the ActivityPub integration.

Computes the feed ids for get_feed_publishes/2.

Options:

  • :inbox - list of objects whose inbox we should attempt to insert into.
  • :outbox - list of objects whose outbox we should attempt to insert into.
  • :notifications - list of objects whose notifications we should attempt to insert into.
  • :feeds - list of ids (or objects containing IDs of feeds to post to.
Link to this function

get_feed_publishes(options)

View Source

Creates the underlying data for put_feed_publishes/2.

Link to this function

mark_all_seen(feed_id, opts)

View Source
Link to this function

my_feed(opts, home_feed_ids \\ nil)

View Source

Gets a user's home feed, a combination of all feeds the user is subscribed to.

Link to this function

publish(subject, verb_or_activity, object, opts \\ [])

View Source

Creates a new local activity and publishes to appropriate feeds TODO: make this re-use the changeset-based code like in Epics instead of duplicating logic (currently it is only used in VF extension anyway)

Link to this function

put_feed_publishes(changeset, options)

View Source

Arranges for an insert changeset to also publish to feeds related to some objects.

Options: see get_feed_ids/1

Link to this function

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

View Source
Link to this function

query(filters, opts, query)

View Source
Link to this function

query_paginated(query_or_filters \\ [], opts \\ [])

View Source
Link to this function

query_paginated(filters, opts, query)

View Source

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

Link to this function

unseen_count(feed_id, opts)

View Source
Link to this function

unseen_query(feed_id, opts)

View Source