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

Related to https://git.pleroma.social/pleroma/mastofe/issues/20
This commit is contained in:
Haelwenn (lanodan) Monnier 2018-06-26 20:48:35 +02:00
parent fc012491a5
commit beb940a57e
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE

View file

@ -868,6 +868,9 @@ def index(%{assigns: %{user: user}} = conn, _params) do
reduce_motion: false, reduce_motion: false,
max_toot_chars: Keyword.get(@instance, :limit) max_toot_chars: Keyword.get(@instance, :limit)
}, },
rights: %{
delete_others_notice: !!user.info["is_moderator"]
},
compose: %{ compose: %{
me: "#{user.id}", me: "#{user.id}",
default_privacy: "public", default_privacy: "public",