Skip to content

Commit

Permalink
Set the approved field when processing report actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TimJentzsch committed Jan 29, 2022
1 parent e117244 commit 6b6d7b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/slack/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def update_submission_report(
approve_post(submission)
# Make sure the submission isn't marked as removed
submission.removed_from_queue = False
submission.approved = True
submission.save(skip_extras=True)

blocks = _construct_report_message_blocks(
Expand All @@ -197,6 +198,7 @@ def update_submission_report(
# If reported on the app side this already happened, but not for
# reports from Reddit
submission.removed_from_queue = True
submission.approved = False
submission.save(skip_extras=True)

blocks = _construct_report_message_blocks(
Expand Down

0 comments on commit 6b6d7b1

Please sign in to comment.