mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 00:08:46 +00:00
Fix missing error templates for non-HTML requests (#12593)
This commit is contained in:
@@ -136,6 +136,6 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
def respond_with_error(code)
|
||||
render "errors/#{code}", layout: 'error', status: code
|
||||
render "errors/#{code}", layout: 'error', status: code, formats: [:html]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user