discourse/app
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
..
assets Fix the build. 2020-01-24 04:39:07 +05:30
controllers FEATURE: Replace existing badge owners when using the bulk award feature (#8770) 2020-01-23 14:14:58 -03:00
helpers FIX: use schema.org's BreadcrumList 2020-01-21 22:27:21 +01:00
jobs FIX: Resolve pull hotlinked image and broken link issues for secure media URLs (#8777) 2020-01-24 11:59:30 +10:00
mailers FIX: Replace deprecated URI.encode, URI.escape, URI.unescape and URI.unencode (#8528) 2019-12-12 12:49:21 +10:00
models FIX: Resolve pull hotlinked image and broken link issues for secure media URLs (#8777) 2020-01-24 11:59:30 +10:00
serializers FEATURE: Secure media allowing duplicated uploads with category-level privacy and post-based access rules (#8664) 2020-01-16 13:50:27 +10:00
services FEATURE: Replace existing badge owners when using the bulk award feature (#8770) 2020-01-23 14:14:58 -03:00
views FIX: use schema.org's BreadcrumList 2020-01-21 22:27:21 +01:00