mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +08:00
DEV: Replace raw comments with deprecation warnings (#22617)
We have a number of raw comments indicating that certain methods and classes are deprecated and marked for removal. This change turn those comments into deprecation warnings so that we can 1) see them in the logs of our own hosting and 2) give some warning to self hosters.
This commit is contained in:
@ -167,11 +167,13 @@ class Admin::EmailController < Admin::AdminController
|
||||
end
|
||||
end
|
||||
|
||||
# TODO: 2022-05-01 Remove this route once all sites have migrated over
|
||||
# to using the new email_encoded param.
|
||||
if deprecated_email_param_used
|
||||
render plain:
|
||||
"warning: the email parameter is deprecated. all POST requests to this route should be sent with a base64 strict encoded email_encoded parameter instead. email has been received and is queued for processing"
|
||||
warning =
|
||||
"warning: the email parameter is deprecated. all POST requests to this route should be sent with a base64 strict encoded email_encoded parameter instead. email has been received and is queued for processing"
|
||||
|
||||
Discourse.deprecate(warning, drop_from: "3.3.0")
|
||||
|
||||
render plain: warning
|
||||
else
|
||||
render plain: "email has been received and is queued for processing"
|
||||
end
|
||||
|
Reference in New Issue
Block a user