Fix uncaught 422 and 500 errors (#11590)
This commit is contained in:
@ -7,6 +7,8 @@ class MediaProxyController < ApplicationController
|
||||
|
||||
before_action :authenticate_user!, if: :whitelist_mode?
|
||||
|
||||
rescue_from ActiveRecord::RecordInvalid, with: :not_found
|
||||
|
||||
def show
|
||||
RedisLock.acquire(lock_options) do |lock|
|
||||
if lock.acquired?
|
||||
|
Reference in New Issue
Block a user