mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 16:28:59 +00:00
Fix self-destruct page not using theme styles (#2490)
This commit is contained in:
@@ -176,7 +176,10 @@ class ApplicationController < ActionController::Base
|
|||||||
return unless self_destruct?
|
return unless self_destruct?
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.any { render 'errors/self_destruct', layout: 'auth', status: 410, formats: [:html] }
|
format.any do
|
||||||
|
use_pack 'error'
|
||||||
|
render 'errors/self_destruct', layout: 'auth', status: 410, formats: [:html]
|
||||||
|
end
|
||||||
format.json { render json: { error: Rack::Utils::HTTP_STATUS_CODES[410] }, status: code }
|
format.json { render json: { error: Rack::Utils::HTTP_STATUS_CODES[410] }, status: code }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user