Skip to content

Commit

Permalink
Fix LinkCrawlWorker error when encountering empty OEmbed response (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and vmstan committed Jan 5, 2024
1 parent 0e1657c commit 08cf1be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/fetch_oembed_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def parse_for_format(body)
end

def validate(oembed)
oembed if oembed[:version].to_s == '1.0' && oembed[:type].present?
oembed if oembed.present? && oembed[:version].to_s == '1.0' && oembed[:type].present?
end

def html
Expand Down

0 comments on commit 08cf1be

Please sign in to comment.