Add characterLimit
and vapidPublicKey
to nodeinfo
This commit is contained in:
parent
3189c44a0c
commit
1c3f3a12ed
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user