Skip to content

Commit

Permalink
Make sure the submission gets marked as removed in the DB
Browse files Browse the repository at this point in the history
  • Loading branch information
TimJentzsch committed Jan 16, 2022
1 parent 348165f commit 189254d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions api/views/slack_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,14 @@ def process_submission_update(data: dict) -> None:
},
}
else:
# The submission was removed temporarily from the app queue when it was reported,
# so we don't have to do anything else on the app side. Now that it's been
# verified, go ahead and nuke it from Reddit's side as well.
# Remove the post from Reddit
remove_post(submission_obj)
# Make sure the submission is marked as removed
# If reported on the app side this already happened, but not for
# reports from Reddit
submission_obj.removed_from_queue = True
submission_obj.save(skip_extras=True)

blocks[-1] = {
"type": "section",
"text": {
Expand Down

0 comments on commit 189254d

Please sign in to comment.