]> cat aescling's git repositories - mastodon.git/commitdiff
Fix access to OEmbed endpoint in secure mode (#12864)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 14 Jan 2020 07:52:32 +0000 (08:52 +0100)
committerGitHub <noreply@github.com>
Tue, 14 Jan 2020 07:52:32 +0000 (08:52 +0100)
app/controllers/api/oembed_controller.rb

index 37a163cd333d32ae0e672efc37e2d8243057b856..c8c60b1cf664c9b6f1fd641c9b732dc331b6bb5a 100644 (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