DEV: use upload id to save in theme setting instead of URL. (#14341)

When we use URL instead it creates the problem while changing the CDN hostname.
This commit is contained in:
Vinoth Kannan
2021-09-16 07:58:53 +05:30
committed by GitHub
parent 91453dd3fc
commit a6de4a5ce9
7 changed files with 89 additions and 6 deletions

View File

@@ -542,7 +542,7 @@ HTML
default: ""
YAML
ThemeSetting.create!(theme: theme, data_type: ThemeSetting.types[:upload], value: upload.url, name: "my_upload")
ThemeSetting.create!(theme: theme, data_type: ThemeSetting.types[:upload], value: upload.id.to_s, name: "my_upload")
theme.save!
json = JSON.parse(cached_settings(theme.id))