mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
DEV: Enqueueing symbol args is deprecated (#17897)
Fixes warning: ``` Deprecation notice: Jobs::SendSystemMessage was enqueued with argument values which do not cleanly serialize to/from JSON. This means that the job will be run with slightly different values than the ones supplied to `enqueue`. Argument values should be strings, booleans, numbers, or nil (or arrays/hashes of those value types). (deprecated since Discourse 2.9) (removal in Discourse 3.0) At /var/www/discourse/lib/post_destroyer.rb:335:in `notify_deletion` ```
This commit is contained in:
parent
4f7c29845d
commit
0cbdbe3be9
|
@ -335,7 +335,7 @@ class PostDestroyer
|
|||
Jobs.enqueue(
|
||||
:send_system_message,
|
||||
user_id: @post.user_id,
|
||||
message_type: notify_responders ? :flags_agreed_and_post_deleted_for_responders : :flags_agreed_and_post_deleted,
|
||||
message_type: notify_responders ? "flags_agreed_and_post_deleted_for_responders" : "flags_agreed_and_post_deleted",
|
||||
message_options: {
|
||||
flagged_post_raw_content: notify_responders ? options[:parent_post].raw : @post.raw,
|
||||
flagged_post_response_raw_content: @post.raw,
|
||||
|
|
Loading…
Reference in New Issue
Block a user