diff --git a/files/routes/reporting.py b/files/routes/reporting.py index def97073a..55a9290c2 100644 --- a/files/routes/reporting.py +++ b/files/routes/reporting.py @@ -63,33 +63,6 @@ def api_flag_comment(cid, v): return {"message": "Comment reported!"} -@app.post('/del_report/post//') -@limiter.limit("1/second;30/minute;200/hour;1000/day") -@admin_level_required(2) -def remove_report_post(v, pid, uid): - - try: - pid = int(pid) - uid = int(uid) - except: abort(400) - - report = g.db.query(Flag).filter_by(post_id=pid, user_id=uid).one() - - g.db.delete(report) - - ma=ModAction( - kind="delete_report", - user_id=v.id, - target_submission_id=pid - ) - - g.db.add(ma) - - g.db.commit() - - return {"message": "Report removed successfully!"} - - @app.post('/del_report/comment//') @limiter.limit("1/second;30/minute;200/hour;1000/day") @admin_level_required(2) diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 8ca5624f9..a01c3614d 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -66,7 +66,7 @@

 		
    {% for f in p.flags(v) %} -
  • {{f.user.username}}{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %} {% if v and v.admin_level > 1 %}[remove]{% endif %}
  • +
  • {{f.user.username}}{% if f.reason %}: {{f.realreason(v) | safe}}{% endif %}
  • {% endfor %}