From beb940a57e771b44b8a9b450efe46cd064f17e51 Mon Sep 17 00:00:00 2001 From: "Haelwenn (lanodan) Monnier" Date: Tue, 26 Jun 2018 20:48:35 +0200 Subject: [PATCH] [Pleroma.Web.MastodonAPI.MastodonAPIController]: Add rights to initial_state Related to https://git.pleroma.social/pleroma/mastofe/issues/20 --- lib/pleroma/web/mastodon_api/mastodon_api_controller.ex | 3 +++ 1 file changed, 3 insertions(+) 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",