diff --git a/app/models/post.rb b/app/models/post.rb index 04df7e932fc..50ecee6986b 100644 --- a/app/models/post.rb +++ b/app/models/post.rb @@ -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 diff --git a/app/models/reviewable_flagged_post.rb b/app/models/reviewable_flagged_post.rb index 3795f052676..68e04c19c85 100644 --- a/app/models/reviewable_flagged_post.rb +++ b/app/models/reviewable_flagged_post.rb @@ -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