mirror of
https://github.com/discourse/discourse.git
synced 2025-04-01 09:25:59 +08: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.