mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 01:55:46 +08:00
DEV: Apply syntax_tree formatting to app/*
This commit is contained in:
@ -17,6 +17,10 @@ class UploadSerializer < ApplicationSerializer
|
||||
:dominant_color
|
||||
|
||||
def url
|
||||
object.for_site_setting ? object.url : UrlHelper.cook_url(object.url, secure: SiteSetting.secure_uploads? && object.secure)
|
||||
if object.for_site_setting
|
||||
object.url
|
||||
else
|
||||
UrlHelper.cook_url(object.url, secure: SiteSetting.secure_uploads? && object.secure)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user