From: Haelwenn (lanodan) Monnier Date: Tue, 26 Jun 2018 18:48:35 +0000 (+0200) Subject: [Pleroma.Web.MastodonAPI.MastodonAPIController]: Add rights to initial_state X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=beb940a57e771b44b8a9b450efe46cd064f17e51;p=akkoma [Pleroma.Web.MastodonAPI.MastodonAPIController]: Add rights to initial_state Related to https://git.pleroma.social/pleroma/mastofe/issues/20 --- 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",