We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20e11c8 commit fd32f11Copy full SHA for fd32f11
app/jobs/analyze_spam_job.rb
@@ -8,7 +8,7 @@ def perform(spammable)
8
thing_to_analyze = spammable['klass'].classify.constantize.find(spammable['id'])
9
10
if thing_to_analyze.spam?
11
- thing_to_analyze.create_spam_report
+ thing_to_analyze.create_spam_report unless thing_to_analyze.spam_report.present?
12
end
13
14
0 commit comments