Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -868,6 +868,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController 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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment