mirror of
https://github.com/discourse/discourse.git
synced 2025-02-09 21:04:48 +00:00
This is a follow up of 5fcb7c262d
It was missing the case where secure uploads is enabled, which creates a copy of the upload no matter what.
So this checks for the original_sha1 of the uploads as well when checking for duplicates.