瀏覽代碼

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

master^2
Eugen Rochko 4 年之前
committed by GitHub
父節點
當前提交
02d272cf49
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      app/controllers/api/oembed_controller.rb

+ 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


Loading…
取消
儲存