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:
commit
d386e8a825
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue