A platform for community discussion. Free, open, simple.
FIX: Add `rel=0` to youtube lazy videos url (#24173)
Jan Cernik4ef3066af5ec
diff --git a/plugins/discourse-lazy-videos/assets/javascripts/discourse/components/lazy-iframe.js b/plugins/discourse-lazy-videos/assets/javascripts/discourse/components/lazy-iframe.jsindex d5507392d79..6eec7b1015b 100644--- a/plugins/discourse-lazy-videos/assets/javascripts/discourse/components/lazy-iframe.js+++ b/plugins/discourse-lazy-videos/assets/javascripts/discourse/components/lazy-iframe.js@@ -4,7 +4,7 @@ export default class LazyVideo extends Component {get iframeSrc() {switch (this.args.providerName) {case "youtube":- let url = `https://www.youtube.com/embed/${this.args.videoId}?autoplay=1`;+ let url = `https://www.youtube.com/embed/${this.args.videoId}?autoplay=1&rel=0`;if (this.args.startTime) {url += `&start=${this.convertToSeconds(this.args.startTime)}`;}