Sfoglia il codice sorgente

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

master^2
Eugen Rochko 4 anni fa
committed by GitHub
parent
commit
02d272cf49
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. +2
    -0
      app/controllers/api/oembed_controller.rb

+ 2
- 0
app/controllers/api/oembed_controller.rb Vedi 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


Caricamento…
Annulla
Salva