From ecd88e9abb83893148c26187ef25292768cfcc4b Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 7 Feb 2022 20:18:17 +0000 Subject: [PATCH] DEV: Make `:send_system_message` arguments strings (#15851) --- app/models/post.rb | 2 +- app/models/reviewable_flagged_post.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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