report: Don't bomb on thing.ignore_reports.

This commit is contained in:
Ricky Ramirez
2013-03-01 09:56:51 -08:00
parent da1e71f164
commit 252d81e64d

View File

@@ -72,7 +72,8 @@ class Report(MultiRelation('report',
author._incr('reported')
item_age = datetime.now(g.tz) - thing._date
if item_age.days < g.REPORT_AGE_LIMIT and not thing.ignore_reports:
ignore_reports = getattr(thing, 'ignore_reports', False)
if item_age.days < g.REPORT_AGE_LIMIT and not ignore_reports:
# update the reports queue if it exists
queries.new_report(thing, r)