mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 03:45:06 +08:00
FIX: store the topic links using the cooked upload url
This commit is contained in:
@ -80,7 +80,7 @@ class Upload < ActiveRecord::Base
|
||||
|
||||
uri = begin
|
||||
URI(URI.unescape(url))
|
||||
rescue URI::InvalidURIError, URI::InvalidComponentError
|
||||
rescue URI::Error
|
||||
end
|
||||
|
||||
return if uri&.path.blank?
|
||||
|
Reference in New Issue
Block a user