Add characterLimit and vapidPublicKey to nodeinfo

This commit is contained in:
Egor Kislitsyn 2020-03-26 16:20:20 +04:00
parent 3189c44a0c
commit 1c3f3a12ed
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805

View file

@ -106,6 +106,7 @@ def raw_nodeinfo do
},
staffAccounts: staff_accounts,
federation: federation_response,
characterLimit: Config.get([:instance, :limit]),
pollLimits: Config.get([:instance, :poll_limits]),
postFormats: Config.get([:instance, :allowed_post_formats]),
uploadLimits: %{
@ -125,7 +126,8 @@ def raw_nodeinfo do
mailerEnabled: Config.get([Pleroma.Emails.Mailer, :enabled], false),
features: features,
restrictedNicknames: Config.get([Pleroma.User, :restricted_nicknames]),
skipThreadContainment: Config.get([:instance, :skip_thread_containment], false)
skipThreadContainment: Config.get([:instance, :skip_thread_containment], false),
vapidPublicKey: Keyword.get(Pleroma.Web.Push.vapid_config(), :public_key)
}
}
end