commit: d386e8a8253aecbd7a8f951f4624cc4943280125
parent: fc012491a5174139b06cc9945e6dc4bc687ebdb7
Author: lambda <pleromagit@rogerbraun.net>
Date: Wed, 27 Jun 2018 12:48:01 +0000
Merge branch 'features/initial-state_rights' into 'develop'
[Pleroma.Web.MastodonAPI.MastodonAPIController]: Add rights to initial_state
See merge request pleroma/pleroma!236
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
@@ -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",