projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'feature/object-normalization' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
mastodon_api
/
mastodon_api_controller.ex
diff --git
a/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
b/lib/pleroma/web/mastodon_api/mastodon_api_controller.ex
index 71f34a488aeec9e26fb440f8d510d8df7541c65b..09e6b0b59ce22db8518a05a3eafbd0dd7e41c2d5 100644
(file)
--- 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,
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}",
},
compose: %{
me: "#{user.id}",
- default_privacy: "public",
+ default_privacy:
user.info["default_scope"] ||
"public",
default_sensitive: false
},
media_attachments: %{
default_sensitive: false
},
media_attachments: %{