Fix access to OEmbed endpoint in secure mode (#12864)

This commit is contained in:
Eugen Rochko 2020-01-14 08:52:32 +01:00 committed by GitHub
parent 10fb866652
commit 61320da638

View file

@ -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