FEATURE: Use path from existing URL of uploads and optimized images (PR #13177)

Discourse shouldn’t dynamically calculate the path of uploads and optimized images after a file has been stored on disk or S3. Otherwise it might calculate the wrong path if the SHA1 or extension stored in the database doesn’t match the actual file path.

GitHub

Love the test coverage here.