FIX: Change secure media to encompass attachments as well (PR #9271)

GitHub

huge fan of the simplification here, is this ready to merge?

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/secure-media-uploads/140017/51