mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-11-19 16:10:59 +00:00
[Pleroma.Web.MastodonAPI.MastodonAPIController]: Add rights to initial_state
Related to https://git.pleroma.social/pleroma/mastofe/issues/20
This commit is contained in:
parent
fc012491a5
commit
beb940a57e
1 changed files with 3 additions and 0 deletions
|
@ -868,6 +868,9 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
|
||||||
reduce_motion: false,
|
reduce_motion: false,
|
||||||
max_toot_chars: Keyword.get(@instance, :limit)
|
max_toot_chars: Keyword.get(@instance, :limit)
|
||||||
},
|
},
|
||||||
|
rights: %{
|
||||||
|
delete_others_notice: !!user.info["is_moderator"]
|
||||||
|
},
|
||||||
compose: %{
|
compose: %{
|
||||||
me: "#{user.id}",
|
me: "#{user.id}",
|
||||||
default_privacy: "public",
|
default_privacy: "public",
|
||||||
|
|
Loading…
Reference in a new issue