Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pleroma
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
An Darna
pleroma
Commits
2b7b1b3e
Commit
2b7b1b3e
authored
Jul 17, 2018
by
Hakaba Hitoyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add suggestionsThirdPartyEngine into /nodeinfo/2.0.json
parent
d76f0d87
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
+3
-1
No files found.
lib/pleroma/web/nodeinfo/nodeinfo_controller.ex
View file @
2b7b1b3e
...
...
@@ -21,6 +21,7 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
def
nodeinfo
(
conn
,
%{
"version"
=>
"2.0"
})
do
instance
=
Application
.
get_env
(
:pleroma
,
:instance
)
media_proxy
=
Application
.
get_env
(
:pleroma
,
:media_proxy
)
suggestions
=
Application
.
get_env
(
:pleroma
,
:suggestions
)
stats
=
Stats
.
get_stats
()
response
=
%{
...
...
@@ -43,7 +44,8 @@ defmodule Pleroma.Web.Nodeinfo.NodeinfoController do
},
metadata:
%{
nodeName:
Keyword
.
get
(
instance
,
:name
),
mediaProxy:
Keyword
.
get
(
media_proxy
,
:enabled
)
mediaProxy:
Keyword
.
get
(
media_proxy
,
:enabled
),
suggestionsThirdPartyEngine:
Keyword
.
get
(
@suggestions
,
:third_party_engine
,
false
)
}
}
...
...
Write
Preview
Markdown
is supported
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