Merge pull request #4921 from nonamethanks/fix-foundation-iqdb

Fix foundation urls not working with iqdb
This commit is contained in:
evazion
2021-11-15 03:14:07 -06:00
committed by GitHub

View File

@@ -52,7 +52,9 @@ module Sources
end
def preview_urls
[page&.at("meta[property='og:image']")&.[](:content)]
previews = [page&.at("meta[property='og:image']")&.[](:content)].compact
previews.presence || image_urls
end
def page_url