From 23257b0c4bda5048cb9fd3f09c93e355d8515b4c Mon Sep 17 00:00:00 2001 From: Caio <117518+caiosba@users.noreply.github.com> Date: Wed, 24 Jan 2024 16:51:29 -0300 Subject: [PATCH] React to the Smooch trigger related to story mention. 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'],