Fix issue with first return value of FetchLinkCardService.html method

7f1c56954b
This commit is contained in:
mgabdev 2021-01-25 15:50:10 -05:00
parent ba4fb61712
commit e8a436f865
1 changed files with 2 additions and 2 deletions

View File

@ -49,11 +49,11 @@ class FetchLinkCardService < BaseService
Request.new(:get, @url).add_headers('Accept' => 'text/html').perform do |res|
if res.code == 200 && res.mime_type == 'text/html'
@html = res.body_with_limit
@html_charset = res.charset
@html = res.body_with_limit
else
@html = nil
@html_charset = nil
@html = nil
end
end