aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-06-27 12:48:01 +0000
committerlambda <pleromagit@rogerbraun.net>2018-06-27 12:48:01 +0000
commitd386e8a8253aecbd7a8f951f4624cc4943280125 (patch)
tree4c1fcfbc4c05bd74300007372b256d430ac1bb3d
parentfc012491a5174139b06cc9945e6dc4bc687ebdb7 (diff)
parentbeb940a57e771b44b8a9b450efe46cd064f17e51 (diff)
downloadpleroma-d386e8a8253aecbd7a8f951f4624cc4943280125.tar.gz
Merge branch 'features/initial-state_rights' into 'develop'
[Pleroma.Web.MastodonAPI.MastodonAPIController]: Add rights to initial_state See merge request pleroma/pleroma!236
-rw-r--r--lib/pleroma/web/mastodon_api/mastodon_api_controller.ex3
1 files 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
index dab255ee2..9d3f526c9 100644
--- 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",