diff options
author | lambda <pleromagit@rogerbraun.net> | 2018-06-27 12:48:01 +0000 |
---|---|---|
committer | lambda <pleromagit@rogerbraun.net> | 2018-06-27 12:48:01 +0000 |
commit | d386e8a8253aecbd7a8f951f4624cc4943280125 (patch) | |
tree | 4c1fcfbc4c05bd74300007372b256d430ac1bb3d /lib | |
parent | fc012491a5174139b06cc9945e6dc4bc687ebdb7 (diff) | |
parent | beb940a57e771b44b8a9b450efe46cd064f17e51 (diff) | |
download | pleroma-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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 3 |
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", |