From 5e268211b530b7bb8a429e10807f770ef9a0c0bc Mon Sep 17 00:00:00 2001 From: Caio Almeida <117518+caiosba@users.noreply.github.com> Date: Thu, 25 Jan 2024 07:48:44 -0300 Subject: [PATCH] React to the Smooch trigger related to story mention. (#1781) The tipline bot should react to the Smooch trigger that happens when a connected Instagram account is mentioned in a story. This is required in order for the Facebook app to be approved. Fixes: CV2-3727. --- app/models/bot/smooch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/bot/smooch.rb b/app/models/bot/smooch.rb index d346671144..2ba68ffd6b 100644 --- a/app/models/bot/smooch.rb +++ b/app/models/bot/smooch.rb @@ -302,7 +302,7 @@ def self.run(body) when 'message:delivery:failure' self.resend_message(json) true - when 'conversation:start' + when 'conversation:start', 'conversation:referral' message = { '_id': json['conversation']['_id'], authorId: json['appUser']['_id'],