View Source Bonfire.Social.FeedActivities (bonfire v0.3.0-classic-beta.4)

Link to this section Summary

Functions

Delete an activity (usage by things like unlike)

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.

Takes or creates an activity and publishes to object creator's inbox

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

Creates a new local activity or takes an existing one and publishes to creator's inbox

Creates a new local activity or takes an existing one and publishes to object's notifications (if object is an actor)

Creates a new local activity or takes an existing one and publishes to object's inbox (assuming object is a character)

Creates a new local activity and publishes to appropriate feeds

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

Records a remote activity and puts in appropriate feeds

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
Link to this function

delete(objects, by_field \\ :id)

View Source

Delete an activity (usage by things like unlike)

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

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

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

maybe_notify_creator(subject, verb_or_activity, object)

View Source

Takes or creates an activity and publishes to object creator's inbox

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

notify_admins(subject, verb_or_activity, object)

View Source

Creates a new local activity or takes an existing one and publishes to creator's inbox

Link to this function

notify_characters(subject, verb_or_activity, object, characters)

View Source

Creates a new local activity or takes an existing one and publishes to object's notifications (if object is an actor)

Link to this function

notify_feeds(subject, verb_or_activity, object, feed_ids)

View Source
Link to this function

notify_object(subject, verb_or_activity, object)

View Source

Creates a new local activity or takes an existing one and publishes to object's inbox (assuming object is a character)

Link to this function

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

View Source

Creates a new local activity and publishes to appropriate feeds

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
Link to this function

save_fediverse_incoming_activity(subject, verb, object)

View Source

Records a remote activity and puts in appropriate feeds

Link to this function

unseen_count(feed_id, opts)

View Source
Link to this function

unseen_query(feed_id, opts)

View Source