Martin Brennan 45b37a8bd1
FIX: Resolve pull hotlinked image and broken link issues for secure media URLs (#8777)
When pull_hotlinked_images tried to run on posts with secure media (which had already been downloaded from external sources) we were getting a 404 when trying to download the image because the secure endpoint doesn't allow anon downloads.

Also, we were getting into an infinite loop of pull_hotlinked_images because the job didn't consider the secure media URLs as "downloaded" already so it kept trying to download them over and over.

In this PR I have also refactored secure-media-upload URL checks and mutations into single source of truth in Upload, adding a SECURE_MEDIA_ROUTE constant to check URLs against too.
2020-01-24 11:59:30 +10:00
..
2019-12-11 14:04:02 +10:00
2019-11-19 10:21:06 +00:00
2019-11-29 15:49:08 +00:00
2020-01-15 11:21:58 +01:00
2019-10-21 12:08:20 +01:00
2019-12-30 16:13:27 +10:00
2019-12-05 20:35:39 +05:30
2019-10-21 12:08:20 +01:00
2019-05-13 15:24:24 +01:00
2019-10-21 12:08:20 +01:00
2019-12-04 13:33:51 -05:00
2020-01-21 19:23:08 +02:00
2019-05-29 14:26:24 +10:00
2019-10-21 12:08:20 +01:00
2019-10-21 12:08:20 +01:00
2019-10-17 16:58:22 +11:00