Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
nleush committed Oct 24, 2024
2 parents 8aad6a9 + eb98e2a commit 1a555bf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 8 additions & 0 deletions lib/plugins/system/oembed/providers.json
Original file line number Diff line number Diff line change
Expand Up @@ -1141,5 +1141,13 @@
"ndla.no/*"
],
"endpoint": "https://ndla.no/oembed"
},
{
"name": "Everviz",
"templates": [
"app.everviz.com/show/([a-zA-Z0-9])+",
"app.everviz.com/embed/([a-zA-Z0-9])+"
],
"endpoint": "https://api.everviz.com/oembed"
}
]
4 changes: 0 additions & 4 deletions plugins/domains/dribbble.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ export default {
}


// Twitter player is broken on GIFs: https://dribbble.com/shots/4240497-Wisdo-apps-video-introduction
// 2022.07.05: Dribble player is broken now for all. IT comes with x-frame-option that allow only on Twitter.com
/*
if (twitter.player && twitter.player.width && twitter.player.height) {
links.push({
href: twitter.player.value,
Expand All @@ -52,7 +49,6 @@ export default {
'aspect-ratio': twitter.player.width / twitter.player.height,
})
}
*/
}

return links;
Expand Down
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 1a555bf

Please sign in to comment.