Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/links/media/youtube.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func (l *YoutubeLink) Key() string {

func (l *YoutubeLink) EmbedCode() template.HTML {
return template.HTML(
fmt.Sprintf(`<lite-youtube videoid="%s" playlabel="Play Video" nocookie></lite-youtube>`, l.ID),
fmt.Sprintf(`<lite-youtube videoid="%s" playlabel="Play Video" nocookie disablenoscript></lite-youtube>`, l.ID),
)
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/markdown/mdext/videoembed/videoembed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ https://www.youtube.com/watch?v=J2dQCd_kzkA
this is hidden
`),
out: `<p>this is test</p>
<p><lite-youtube videoid="J2dQCd_kzkA" playlabel="Play Video" nocookie></lite-youtube></p>
<p><lite-youtube videoid="J2dQCd_kzkA" playlabel="Play Video" nocookie disablenoscript></lite-youtube></p>
<p>this is hidden</p>`,
},
{
Expand Down