mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 11:34:43 +08:00
3f908c047d
When a theme setting of type `upload` has a default upload, it should return the URL of the specified default upload until a custom upload is used for the setting. However, currently this isn't the case and we get null instead of the default upload URL.
The reason for this is because the `super` method of `#value` already returns the default upload URL (if there's one), so we can't pass that to `cdn_url` which expects an upload ID:
|
||
---|---|---|
.. | ||
invalid_settings.yaml | ||
json_schema_settings.yaml | ||
valid_settings.yaml |