mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
DEV: include time_left
information in rate limiting error messages (#17037)
This commit is contained in:
parent
55d7aa0190
commit
4bc2d54685
@ -192,7 +192,7 @@ class ApplicationController < ActionController::Base
|
||||
e.description,
|
||||
type: :rate_limit,
|
||||
status: 429,
|
||||
extras: { wait_seconds: retry_time_in_seconds },
|
||||
extras: { wait_seconds: retry_time_in_seconds, time_left: e&.time_left },
|
||||
headers: response_headers
|
||||
)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user