1
0
Fork 1
mirror of https://akkoma.dev/AkkomaGang/akkoma.git synced 2024-12-25 04:53:06 +00:00

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

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

See merge request pleroma/pleroma!236
This commit is contained in:
lambda 2018-06-27 12:48:01 +00:00
commit d386e8a825

View file

@ -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",