This website works better with JavaScript.
Home
Explore
Help
Sign In
abunchtell
/
mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Activity
Browse Source
Fix access to OEmbed endpoint in secure mode (
#12864
)
master^2
Eugen Rochko
4 years ago
committed by
GitHub
parent
37b5139822
commit
02d272cf49
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
1 changed files
with
2 additions
and
0 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
app/controllers/api/oembed_controller.rb
+ 2
- 0
app/controllers/api/oembed_controller.rb
View File
@@ -3,6 +3,8 @@
class Api::OEmbedController < Api::BaseController
class Api::OEmbedController < Api::BaseController
respond_to :json
respond_to :json
skip_before_action :require_authenticated_user!
def show
def show
@status = status_finder.status
@status = status_finder.status
render json: @status, serializer: OEmbedSerializer, width: maxwidth_or_default, height: maxheight_or_default
render json: @status, serializer: OEmbedSerializer, width: maxwidth_or_default, height: maxheight_or_default
Write
Preview
Loading…
Cancel
Save