mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 08:17:24 +08:00
DEV: Let's always give a drop_from param to deprecate (#14901)
So that we know when deprecations can be removed in the future.
This commit is contained in:

committed by
GitHub

parent
32a174d883
commit
e7c0bbb9c0
@ -776,7 +776,7 @@ class PostsController < ApplicationController
|
||||
result[:referrer] = request.env["HTTP_REFERER"]
|
||||
|
||||
if recipients = result[:target_usernames]
|
||||
Discourse.deprecate("`target_usernames` is deprecated, use `target_recipients` instead.", output_in_test: true)
|
||||
Discourse.deprecate("`target_usernames` is deprecated, use `target_recipients` instead.", output_in_test: true, drop_from: '2.9.0')
|
||||
else
|
||||
recipients = result[:target_recipients]
|
||||
end
|
||||
|
Reference in New Issue
Block a user