discourse/app
Régis Hanol 48b4ed41f5 FIX: uploading an existing image as a site setting
The previous fix (f43c0a5d85) wasn't working for images that were already uploaded.
The "metadata" (eg. 'for_*' and 'secure' attributes) were not added to existing uploads.

Also used 'Upload.get_from_url' is the admin/site_setting controller to properly retrieve
an upload from its URL.

Fixed the Upload::URL_REGEX to use the \h (hexadecimal) for the SHA

Follow-up-to: f43c0a5d85
2020-07-03 19:16:54 +02:00
..
assets FIX: emoji autocomplete not triggering correctly 2020-07-03 16:56:11 +10:00
controllers FIX: uploading an existing image as a site setting 2020-07-03 19:16:54 +02:00
helpers New bootstrap.json endpoint for starting up Discourse 2020-06-03 14:45:23 -04:00
jobs FEATURE: trigger user_updated event if username is changed. 2020-07-03 00:14:19 +05:30
mailers FIX: Use correct URL for unsubscribe (#10077) 2020-06-24 09:31:20 +02:00
models FIX: uploading an existing image as a site setting 2020-07-03 19:16:54 +02:00
serializers FIX: uploading an image as a site setting 2020-07-03 13:23:10 +02:00
services DEV: after_extract_linked_users hook for plugins to modify user list 2020-07-03 14:52:49 +01:00
views UX: Add Login button on 403 error page if user is not logged in (#10154) 2020-07-01 18:27:42 +03:00