mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 08:48:18 -05:00
report: Don't bomb on thing.ignore_reports.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user