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=71f34a488aeec9e26fb440f8d510d8df7541c65b;hpb=a05c0ff61dd3c9fe58f367d41fc9adc7a73b01a7;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 71f34a488..09e6b0b59 100644 --- a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex +++ b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex @@ -865,11 +865,15 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do delete_modal: true, auto_play_gif: false, display_sensitive_media: false, - reduce_motion: false + 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: %{