Skip to content

Commit

Permalink
oembed: fix 'accept' validator for videos
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Oct 24, 2024
1 parent 9cee160 commit 6cd5969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/links/oembed-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default {
player.rel = player.rel.concat(iframe.allow.replace(/autoplay;?\s?\*?/ig, '').split(/\s?\*?(?:;|,)\s?\*?/g));
}

if (player.href && whitelistRecord.isAllowed('oembed.rich', "accept") && player.type === CONFIG.T.text_html) {
if (player.href && whitelistRecord.isAllowed('oembed.video', "accept") && player.type === CONFIG.T.text_html) {
player.accept = player.type;
delete player.type;
}
Expand Down

0 comments on commit 6cd5969

Please sign in to comment.