about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-01-14 08:52:32 +0100
committerGitHub <noreply@github.com>2020-01-14 08:52:32 +0100
commit02d272cf496e12b1c7f72d46799243309d222250 (patch)
tree9c97a431dd43b5d9ccfd5cd49bbc8d220664bff1
parent37b5139822c7db0eb36e075bdbc0cde2e01ae4ef (diff)
Fix access to OEmbed endpoint in secure mode (#12864)
-rw-r--r--app/controllers/api/oembed_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/api/oembed_controller.rb b/app/controllers/api/oembed_controller.rb
index 37a163cd3..c8c60b1cf 100644
--- a/app/controllers/api/oembed_controller.rb
+++ b/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