mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: store the topic links using the cooked upload url
This commit is contained in:
@@ -426,13 +426,13 @@ module SiteSettingExtension
|
||||
|
||||
host = begin
|
||||
URI.parse(url)&.host
|
||||
rescue URI::InvalidURIError
|
||||
rescue URI::Error
|
||||
nil
|
||||
end
|
||||
|
||||
host ||= begin
|
||||
URI.parse("http://#{url}")&.host
|
||||
rescue URI::InvalidURIError
|
||||
rescue URI::Error
|
||||
nil
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user