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 Dec 14, 2023
1 parent d0b8e62 commit bbf1378
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 bbf1378

Please sign in to comment.