Bonfire.Posts.Acts.Posts.Publish (Bonfire v1.0.0-social-rc.1.19)

View Source

Creates a changeset for publishing a post

Epic Options:

  • :current_user - user that will create the post, required.
  • :post_attrs (configurable) - attrs to create the post from, required.
  • :post_id (configurable) - id to use for the created post (handy for creating activitypub objects with an id representing their reported creation time)

Act Options:

  • :id - epic options key to find an id to force override with at, default: :post_id
  • :as - key to assign changeset to, default: :post.
  • :attrs - epic options key to find the attributes at, default: :post_attrs.