We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c848a57 commit a81d716Copy full SHA for a81d716
lib/tasks/spam.rake
@@ -6,7 +6,7 @@ namespace :spam do
6
good_protips = []
7
protips.each do |p|
8
flags = Spaminator.new.protip_flags(p)
9
- if flags.any?
+ if flags.any? && p.hearts_count <= 1
10
Rails.logger.debug "#{p.id} – #{p.title} – #{p.body[0..100].gsub("\n", '')}"
11
Rails.logger.debug "#{flags.inspect}" if flags.any?
12
Rails.logger.debug
0 commit comments