Skip to content

Commit

Permalink
Revert "Include fact-check body in report when URL is blank for Messe…
Browse files Browse the repository at this point in the history
…nger"

This reverts commit 00af91a.
  • Loading branch information
computermacgyver committed Jul 2, 2024
1 parent 00af91a commit 941da62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/smooch_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def send_search_results_to_user(uid, results, team_id, platform)
end
reports.reject{ |r| r.blank? }.each do |report|
response = nil
no_body = (platform == 'Facebook Messenger' && !report_design_field_value('published_article_url').blank?)
no_body = (platform == 'Facebook Messenger')
response = self.send_message_to_user(uid, report.report_design_text(nil, no_body), {}, false, true, 'search_result') if report.report_design_field_value('use_text_message')
response = self.send_message_to_user(uid, '', { 'type' => 'image', 'mediaUrl' => report.report_design_image_url }, false, true, 'search_result') if !report.report_design_field_value('use_text_message') && report.report_design_field_value('use_visual_card')
id = self.get_id_from_send_response(response)
Expand Down

0 comments on commit 941da62

Please sign in to comment.