Pleroma v1.1.9-10-g42f76306+dev Pleroma.User.Info View Source
Link to this section Summary
Functions
Update email notifications in the given User.Info struct.
Link to this section Types
Link to this type
t()
View Sourcet() :: %Pleroma.User.Info{ subscribers: term(), default_scope: term(), hub: term(), fields: term(), is_admin: term(), raw_fields: term(), pinned_activities: term(), email_notifications: term(), muted_notifications: term(), locked: term(), ap_enabled: term(), mutes: term(), keys: term(), settings: term(), show_role: term(), background: term(), emoji: term(), magic_key: term(), hide_follows: term(), source_data: term(), salmon: term(), topic: term(), following_count: term(), follower_count: term(), confirmation_token: term(), mascot: term(), hide_favorites: term(), note_count: term(), is_moderator: term(), domain_blocks: term(), skip_thread_containment: term(), banner: term(), pleroma_settings_store: term(), notification_settings: term(), no_rich_text: term(), uri: term(), muted_reblogs: term(), deactivated: term(), hide_followers: term(), blocks: term(), id: term(), confirmation_pending: term() }
Link to this section Functions
Link to this function
add_to_muted_notifications(changeset, info, muted, notifications?)
View Sourceadd_to_muted_notifications( Changeset.t(), Pleroma.User.Info.t(), String.t(), boolean() ) :: Changeset.t()
Link to this function
add_to_mutes(info, muted)
View Sourceadd_to_mutes(Pleroma.User.Info.t(), String.t()) :: Changeset.t()
Link to this function
confirmation_changeset(info, opts)
View Sourceconfirmation_changeset(Pleroma.User.Info.t(), keyword()) :: Changeset.t()
Link to this function
remove_from_muted_notifications(changeset, info, muted)
View Sourceremove_from_muted_notifications( Changeset.t(), Pleroma.User.Info.t(), String.t() ) :: Changeset.t()
Link to this function
remove_from_mutes(info, muted)
View Sourceremove_from_mutes(Pleroma.User.Info.t(), String.t()) :: Changeset.t()
Link to this function
set_notification_mutes(changeset, muted_notifications, notifications?)
View Source
Link to this function
update_email_notifications(info, settings)
View Sourceupdate_email_notifications(t(), map()) :: Ecto.Changeset.t()
Update email notifications in the given User.Info struct.
Examples:
iex> update_email_notifications(%Pleroma.User.Info{email_notifications: %{"digest" => false}}, %{"digest" => true})
%Pleroma.User.Info{email_notifications: %{"digest" => true}}