Skip to content

Commit

Permalink
meta: fix media detector for articles
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Jul 3, 2024
1 parent c036338 commit 443366e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/meta/media-detector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 443366e

Please sign in to comment.