Skip to content
Permalink
Browse files

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

  • Loading branch information
Gargron committed Jan 14, 2020
1 parent 37b5139 commit 02d272cf496e12b1c7f72d46799243309d222250
Showing with 2 additions and 0 deletions.
  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

0 comments on commit 02d272c

Please sign in to comment.
You can’t perform that action at this time.