Merge pull request #4921 from nonamethanks/fix-foundation-iqdb
Fix foundation urls not working with iqdb
This commit is contained in:
@@ -52,7 +52,9 @@ module Sources
|
|||||||
end
|
end
|
||||||
|
|
||||||
def preview_urls
|
def preview_urls
|
||||||
[page&.at("meta[property='og:image']")&.[](:content)]
|
previews = [page&.at("meta[property='og:image']")&.[](:content)].compact
|
||||||
|
|
||||||
|
previews.presence || image_urls
|
||||||
end
|
end
|
||||||
|
|
||||||
def page_url
|
def page_url
|
||||||
|
|||||||
Reference in New Issue
Block a user