Skip to content

Commit

Permalink
Update imported fact-check tag creation (#2027)
Browse files Browse the repository at this point in the history
While I was testing backlog imports locally,
I noticed that the tags were being created,
but not added to the fact check.

This happened because we associate them with the project media
(here:check-api/app/models/bot/fetch.rb ) and not the fact-check itself,
and those are now separate things.
Meaning, we need to add them to the fact-check itself.

Relates to: 5227
PR: #2027
  • Loading branch information
vasconsaurus authored Sep 9, 2024
1 parent b603a4c commit dab3b7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/bot/fetch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ def self.set_claim_and_fact_check(claim_review, pm, user, team)
fc.title = self.get_title(claim_review).to_s
fc.url = claim_review['url'].to_s
fc.summary = self.get_summary(claim_review).to_s
fc.tags = claim_review['keywords'].to_s.split(',').map(&:strip).reject{ |r| r.blank? }
fc.user = user
fc.language = fc_language
fc.publish_report = true
Expand Down

0 comments on commit dab3b7d

Please sign in to comment.