Fix foundation urls not working with iqdb

This commit is contained in:
nonamethanks
2021-11-15 10:10:49 +01:00
parent ab6d9bd0e8
commit 41f9fde2e0

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