FIX: store the topic links using the cooked upload url

This commit is contained in:
Régis Hanol
2018-08-14 12:23:32 +02:00
parent ad5f502332
commit de92913bf4
31 changed files with 116 additions and 110 deletions

View File

@@ -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