"endpoints" => endpoints,
"attachment" => fields,
"tag" => emoji_tags,
- "is_discoverable" => user.is_discoverable,
+ "discoverable" => user.is_discoverable,
"capabilities" => capabilities
}
|> Map.merge(maybe_make_image(&User.avatar_url/2, "icon", user))
:show_role,
:skip_thread_containment,
:allow_following_move,
- :is_discoverable,
:accepts_chat_messages
]
|> Enum.reduce(%{}, fn key, acc ->
if bot, do: {:ok, "Service"}, else: {:ok, "Person"}
end)
|> Maps.put_if_present(:actor_type, params[:actor_type])
+ |> Maps.put_if_present(:is_discoverable, params[:discoverable])
# What happens here:
#
sensitive: false,
fields: user.raw_fields,
pleroma: %{
- is_discoverable: user.is_discoverable,
+ discoverable: user.is_discoverable,
actor_type: user.actor_type
}
},
"note" => "",
"pleroma" => %{
"actor_type" => "Person",
- "is_discoverable" => false,
+ "discoverable" => false,
"no_rich_text" => false,
"show_role" => true
},
sensitive: false,
pleroma: %{
actor_type: "Person",
- is_discoverable: true
+ discoverable: true
},
fields: []
},
sensitive: false,
pleroma: %{
actor_type: "Service",
- is_discoverable: true
+ discoverable: true
},
fields: []
},