Bonfire.Data.Identity.Character (Bonfire v1.0.0-social-rc.2.13)

View Source

A username mixin that denies reuse of the same or similar usernames even when the username has been deleted.

Summary

Types

t()

@type t() :: %Bonfire.Data.Identity.Character{
  __meta__: Ecto.Schema.Metadata.t(),
  actor: Ecto.Schema.has_one(Bonfire.Data.ActivityPub.Actor.t()) | nil,
  aliased: Ecto.Schema.has_many(Bonfire.Data.Edges.Edge.t()),
  aliases: Ecto.Schema.has_many(Bonfire.Data.Edges.Edge.t()),
  feed: Ecto.Schema.has_one(Bonfire.Data.Social.Feed.t()) | nil,
  follow_count: Ecto.Schema.has_one(Bonfire.Data.Edges.EdgeTotal.t()) | nil,
  followed: Ecto.Schema.has_many(Bonfire.Data.Edges.Edge.t()),
  followers: Ecto.Schema.has_many(Bonfire.Data.Edges.Edge.t()),
  id: Needle.UID.t() | nil,
  inbox: Ecto.Schema.belongs_to(Bonfire.Data.Social.Feed.t()) | nil,
  inbox_id: Needle.UID.t() | nil,
  notifications: Ecto.Schema.belongs_to(Bonfire.Data.Social.Feed.t()) | nil,
  notifications_id: Needle.UID.t() | nil,
  outbox: Ecto.Schema.belongs_to(Bonfire.Data.Social.Feed.t()) | nil,
  outbox_id: Needle.UID.t() | nil,
  peered: Ecto.Schema.has_one(Bonfire.Data.ActivityPub.Peered.t()) | nil,
  pointer: Ecto.Schema.belongs_to(Needle.Pointer.t()) | nil,
  profile: Ecto.Schema.has_one(Bonfire.Data.Social.Profile.t()) | nil,
  tree: Ecto.Schema.has_one(Bonfire.Classify.Tree.t()) | nil,
  user: Ecto.Schema.has_one(Bonfire.Data.Identity.User.t()) | nil,
  username: String.t() | nil,
  username_hash: String.t() | nil
}

Functions

changeset(char \\ %Character{}, params, extra \\ nil)

changeset_basic(char, params)

delete(struct, key)

get(struct, key, default \\ nil)

hash(name)

put(struct, key, val)

uniform(name)