This website works better with JavaScript.
Home
Explore
Help
Sign In
nekobus
/
mastodon_neko
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix `GET /api/v1/instance` REST APIs being unavailable in secure mode (
#12089
)
master
Eugen Rochko
5 years ago
committed by
GitHub
parent
f665901e3c
commit
a582185625
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
3 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
app/controllers/api/v1/instances/activity_controller.rb
+1
-0
app/controllers/api/v1/instances/peers_controller.rb
+1
-0
app/controllers/api/v1/instances_controller.rb
+ 1
- 0
app/controllers/api/v1/instances/activity_controller.rb
View File
@ -4,6 +4,7 @@ class Api::V1::Instances::ActivityController < Api::BaseController
before_action
:require_enabled_api!
skip_before_action
:set_cache_headers
skip_before_action
:require_authenticated_user!
,
unless
:
:whitelist_mode?
respond_to
:json
+ 1
- 0
app/controllers/api/v1/instances/peers_controller.rb
View File
@ -4,6 +4,7 @@ class Api::V1::Instances::PeersController < Api::BaseController
before_action
:require_enabled_api!
skip_before_action
:set_cache_headers
skip_before_action
:require_authenticated_user!
,
unless
:
:whitelist_mode?
respond_to
:json
+ 1
- 0
app/controllers/api/v1/instances_controller.rb
View File
@ -4,6 +4,7 @@ class Api::V1::InstancesController < Api::BaseController
respond_to
:json
skip_before_action
:set_cache_headers
skip_before_action
:require_authenticated_user!
,
unless
:
:whitelist_mode?
def
show
expires_in
3
.
minutes
,
public
:
true
Write
Preview
Loading…
Cancel
Save