Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pleroma
pleroma
Commits
1c3f3a12
Verified
Commit
1c3f3a12
authored
Mar 26, 2020
by
minibikini
Browse files
Add `characterLimit` and `vapidPublicKey` to nodeinfo
parent
3189c44a
Pipeline
#23955
passed with stages
in 3 minutes and 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
View file @
1c3f3a12
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment