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

A multimixin for an activity/object appearing in a feed.

A quite interesting thing about this model is that feed references Pointer, so it isn't only things of type Feed that it can appear in, they are just an obvious choice.

Summary

Types

t()

@type t() :: %Bonfire.Data.Social.FeedPublish{
  __meta__: Ecto.Schema.Metadata.t(),
  activity: term(),
  dummy: term(),
  feed: Ecto.Schema.belongs_to(Needle.Pointer.t()) | nil,
  feed_id: Needle.UID.t() | nil,
  id: Needle.UID.t() | nil,
  pointer: Ecto.Schema.belongs_to(Needle.Pointer.t()) | nil
}

Functions

changeset(pub \\ %FeedPublish{}, params)

delete(struct, key)

get(struct, key, default \\ nil)

put(struct, key, val)