소스 검색
Fix access to OEmbed endpoint in secure mode (#12864)
master^2
Eugen Rochko
4 년 전
committed by
GitHub
No known key found for this signature in database
GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일과
2개의 추가작업 그리고
0개의 파일을 삭제
-
app/controllers/api/oembed_controller.rb
|
|
@@ -3,6 +3,8 @@ |
|
|
|
class Api::OEmbedController < Api::BaseController |
|
|
|
respond_to :json |
|
|
|
|
|
|
|
skip_before_action :require_authenticated_user! |
|
|
|
|
|
|
|
def show |
|
|
|
@status = status_finder.status |
|
|
|
render json: @status, serializer: OEmbedSerializer, width: maxwidth_or_default, height: maxheight_or_default |
|
|
|