mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 22:23:00 +08:00
DEV: Make :send_system_message
arguments strings (#15851)
This commit is contained in:
parent
7223d5e012
commit
ecd88e9abb
|
@ -574,7 +574,7 @@ class Post < ActiveRecord::Base
|
||||||
5.seconds,
|
5.seconds,
|
||||||
:send_system_message,
|
:send_system_message,
|
||||||
user_id: user.id,
|
user_id: user.id,
|
||||||
message_type: message,
|
message_type: message.to_s,
|
||||||
message_options: options
|
message_options: options
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
|
@ -321,7 +321,7 @@ private
|
||||||
Jobs.enqueue(
|
Jobs.enqueue(
|
||||||
:send_system_message,
|
:send_system_message,
|
||||||
user_id: post.user_id,
|
user_id: post.user_id,
|
||||||
message_type: :flags_disagreed,
|
message_type: "flags_disagreed",
|
||||||
message_options: {
|
message_options: {
|
||||||
flagged_post_raw_content: post.raw,
|
flagged_post_raw_content: post.raw,
|
||||||
url: post.url
|
url: post.url
|
||||||
|
|
Loading…
Reference in New Issue
Block a user