소스 검색

Fix uncaught errors in media proxy controller (#11811)

master^2
Eugen Rochko 4 년 전
committed by GitHub
부모
커밋
16cdaa1110
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      app/controllers/media_proxy_controller.rb

+ 2
- 0
app/controllers/media_proxy_controller.rb 파일 보기

@@ -8,6 +8,8 @@ class MediaProxyController < ApplicationController
before_action :authenticate_user!, if: :whitelist_mode?

rescue_from ActiveRecord::RecordInvalid, with: :not_found
rescue_from Mastodon::UnexpectedResponseError, with: :not_found
rescue_from HTTP::TimeoutError, HTTP::ConnectionError, OpenSSL::SSL::SSLError, with: :internal_server_error

def show
RedisLock.acquire(lock_options) do |lock|


불러오는 중...
취소
저장