Explorar el Código

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

master^2
Eugen Rochko hace 4 años
committed by GitHub
padre
commit
02d272cf49
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 4AEE18F83AFDEB23
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      app/controllers/api/oembed_controller.rb

+ 2
- 0
app/controllers/api/oembed_controller.rb Ver fichero

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


Cargando…
Cancelar
Guardar