Commit e7333db7 authored by Ariadne Conill's avatar Ariadne Conill

user info: add invisible field

parent 1311884a
......@@ -53,6 +53,7 @@ defmodule Pleroma.User.Info do
field(:fields, {:array, :map}, default: nil)
field(:raw_fields, {:array, :map}, default: [])
field(:discoverable, :boolean, default: false)
field(:invisible, :boolean, default: false)
field(:notification_settings, :map,
default: %{
......@@ -393,6 +394,14 @@ def set_source_data(info, source_data) do
|> validate_required([:source_data])
def set_invisible(info, invisible) do
params = %{invisible: invisible}
|> cast(params, [:invisible])
|> validate_required([:invisible])
def admin_api_update(info, params) do
|> cast(params, [
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment