Prefer higher resolution link preview images
See [#5000][0]. [0]: https://github.com/signalapp/Signal-Desktop/pull/5000
This commit is contained in:
@@ -354,9 +354,10 @@ const parseMetadata = (
|
||||
const rawImageHref =
|
||||
getOpenGraphContent(document, ['og:image', 'og:image:url']) ||
|
||||
getLinkHrefAttribute(document, [
|
||||
'apple-touch-icon',
|
||||
'apple-touch-icon-precomposed',
|
||||
'shortcut icon',
|
||||
'icon',
|
||||
'apple-touch-icon',
|
||||
]);
|
||||
const imageUrl = rawImageHref ? maybeParseUrl(rawImageHref, href) : null;
|
||||
const imageHref = imageUrl ? imageUrl.href : null;
|
||||
|
Reference in New Issue
Block a user