DEV: Make `:send_system_message` arguments strings (#15851)

This commit is contained in:
David Taylor 2022-02-07 20:18:17 +00:00 committed by GitHub
parent 7223d5e012
commit ecd88e9abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -574,7 +574,7 @@ class Post < ActiveRecord::Base
5.seconds,
:send_system_message,
user_id: user.id,
message_type: message,
message_type: message.to_s,
message_options: options
)
end

View File

@ -321,7 +321,7 @@ private
Jobs.enqueue(
:send_system_message,
user_id: post.user_id,
message_type: :flags_disagreed,
message_type: "flags_disagreed",
message_options: {
flagged_post_raw_content: post.raw,
url: post.url