X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb%2Fmastodon_api%2Fmastodon_api_controller.ex;h=09e6b0b59ce22db8518a05a3eafbd0dd7e41c2d5;hb=d93789dfde3c44c76a56732088a897ddddfe9716;hp=dab255ee234e53df4ed1276a87293d8d333921a4;hpb=c3002c583edb9d05b9b69620e4752aafc0d2b550;p=akkoma diff --git a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex index dab255ee2..09e6b0b59 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -868,9 +868,12 @@ 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", + default_privacy: user.info["default_scope"] || "public", default_sensitive: false }, media_attachments: %{