oof
This commit is contained in:
parent
b741837ef2
commit
fc13bfb6f6
1 changed files with 3 additions and 3 deletions
|
@ -83,9 +83,9 @@ class FetchLinkCardService < BaseService
|
|||
else
|
||||
document = Nokogiri::HTML(@status.text)
|
||||
links = document.css(':not(.quote-inline) > a')
|
||||
|
||||
links.filter_map { |a| Addressable::URI.parse(a['href']) unless skip_link?(a) }.filter_map(&:normalize)
|
||||
end
|
||||
links.filter_map { |a| Addressable::URI.parse(a['href']) unless skip_link?(a) }.filter_map(&:normalize)
|
||||
end
|
||||
end
|
||||
|
||||
urls.reject { |uri| bad_url?(uri) }.first
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue