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:
@@ -98,7 +98,7 @@ class PostAnalyzer
|
||||
uri = self.class.parse_uri_rfc2396(u)
|
||||
host = uri.host
|
||||
@linked_hosts[host] ||= 1 unless host.nil?
|
||||
rescue URI::InvalidURIError, URI::InvalidComponentError
|
||||
rescue URI::Error
|
||||
# An invalid URI does not count as a host
|
||||
next
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user