🐛 Fixed wrong icon being pulled into bookmark cards for some sites (#11055)

no issue

Current metascraper rule for fetching page metadata in case of bookmark card gives preference to publisher logo over icon tags. This PR updates giving first preference to icon link tags followed by logo.
This commit is contained in:
Rishabh Garg 2019-08-28 00:02:27 +05:30 committed by Kevin Ansfield
parent c8b9fd0362
commit 44a5da22b9

View File

@ -10,8 +10,8 @@ const metascraper = require('metascraper')([
require('metascraper-author')(),
require('metascraper-publisher')(),
require('metascraper-image')(),
require('metascraper-logo')(),
require('metascraper-logo-favicon')()
require('metascraper-logo-favicon')(),
require('metascraper-logo')()
]);
async function fetchBookmarkData(url, html) {