Skip to content

Commit

Permalink
media detector: fix typo in oembed video detector
Browse files Browse the repository at this point in the history
  • Loading branch information
iparamonau committed Dec 12, 2024
1 parent f1480e3 commit 56b14cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/links/oembed-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ export default {
},

getMeta: function(oembed, whitelistRecord) {

if (!whitelistRecord.isAllowed('oembed.video') && (oembed.type === "video" || oembed.type === "audio")) {
if (whitelistRecord.isAllowed('oembed.video') && (oembed.type === "video" || oembed.type === "audio")) {
return {
medium: oembed.type
};
Expand Down

0 comments on commit 56b14cc

Please sign in to comment.