Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
report: Don't bomb on thing.ignore_reports.
Browse files Browse the repository at this point in the history
  • Loading branch information
rram committed Mar 1, 2013
1 parent da1e71f commit 252d81e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion r2/r2/models/report.py
Expand Up @@ -72,7 +72,8 @@ def new(cls, user, thing):
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)

Expand Down

0 comments on commit 252d81e

Please sign in to comment.