Commit d386e8a8 authored by lain's avatar lain
Browse files

Merge branch 'features/initial-state_rights' into 'develop'

[Pleroma.Web.MastodonAPI.MastodonAPIController]: Add rights to initial_state

See merge request pleroma/pleroma!236
parents fc012491 beb940a5
Pipeline #2649 passed with stages
in 5 minutes and 1 second
......@@ -868,6 +868,9 @@ def index(%{assigns: %{user: user}} = conn, _params) do
reduce_motion: false,
max_toot_chars: Keyword.get(@instance, :limit)
},
rights: %{
delete_others_notice: !!user.info["is_moderator"]
},
compose: %{
me: "#{user.id}",
default_privacy: "public",
......
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