From 443366ea404d58fb5a888c5d2114e70ec67e413b Mon Sep 17 00:00:00 2001 From: Ivan Paramonau Date: Wed, 3 Jul 2024 16:44:03 -0400 Subject: [PATCH] meta: fix media detector for articles --- plugins/meta/media-detector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/meta/media-detector.js b/plugins/meta/media-detector.js index e1def0fee..25d502f0f 100644 --- a/plugins/meta/media-detector.js +++ b/plugins/meta/media-detector.js @@ -25,7 +25,7 @@ export default { && !/\/(?:videos?|media|player|embed)\//i.test(url) && !/https?:\/\/videos?\./i.test(url) && (/article|blog|news|post|noticia/i.test(url) || (/\/(\d{4})\/(\d{2})\/(\d{2})/).test(url) - || /article|post/i.test(meta.og.type) && !meta.ld + || /article|post/i.test(meta.og.type) && (!meta.ld || meta.article) || ( meta.og.video && whitelistRecord.isDefault