amyxzhang / squadbox

Fight harassment with your squad.
https://squadbox.org
MIT License
24 stars 7 forks source link

remove messages from S3 when appropriate #7

Open amyxzhang opened 7 years ago

amyxzhang commented 7 years ago

When a message held for moderation is approved, we delete it from our database. We should also remove it from the S3 bucket.

For rejected messages:

we need to add a function to delete from S3 (we already have a function to upload, which should be somewhat similar) and then call it in these places.