mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Little things:
- Retries on deadlock when calculating average time - Removes Warning: When specifying html format for errors - Doesn't use manual SQL to update user's ip address
This commit is contained in:
@ -66,12 +66,12 @@ class ApplicationController < ActionController::Base
|
||||
# for now do a simple remap, we may look at cleaner ways of doing the render
|
||||
raise ActiveRecord::RecordNotFound
|
||||
else
|
||||
render file: 'public/404.html', layout: false, status: 404
|
||||
render file: 'public/404', formats: [:html], layout: false, status: 404
|
||||
end
|
||||
end
|
||||
|
||||
rescue_from Discourse::InvalidAccess do
|
||||
render file: 'public/403.html', layout: false, status: 403
|
||||
render file: 'public/403', formats: [:html], layout: false, status: 403
|
||||
end
|
||||
|
||||
def store_preloaded(key, json)
|
||||
|
Reference in New Issue
Block a user