Commit e50e38c5 authored by Hakaba Hitoyo's avatar Hakaba Hitoyo

add actor_type into mastodon api

parent f0ec158d
Pipeline #20405 failed with stages
in 5 minutes and 56 seconds
......@@ -152,7 +152,8 @@ def update_credentials(%{assigns: %{user: original_user}} = conn, params) do
:hide_favorites,
:show_role,
:skip_thread_containment,
:discoverable
:discoverable,
:actor_type
]
|> Enum.reduce(%{}, fn key, acc ->
add_if_present(acc, params, to_string(key), key, &{:ok, truthy_param?(&1)})
......
......@@ -138,7 +138,8 @@ defp do_render("show.json", %{user: user} = opts) do
sensitive: false,
fields: user.raw_fields,
pleroma: %{
discoverable: user.discoverable
discoverable: user.discoverable,
actor_type: user.actor_type
}
},
......
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