Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix removal of query parameters on youtube embed links #364

Merged
merged 4 commits into from Oct 3, 2020

Conversation

Obayanju
Copy link
Contributor

@Obayanju Obayanju commented Aug 7, 2020

This makes sure only the autoplay parameter in any youtube URL is disabled.

Fixes #328


  • I have signed the CLA

This uses go's html and url parser plus regex, instead of
using only a single regex for simplicity sake. A single regex expression
might be error prone, for example, when trying to matching html entities.

Fixes writefreely#328
Copy link
Member

@thebaer thebaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this fix! Just a couple changes I'd suggest, and then we'll get this merged.

postrender.go Outdated Show resolved Hide resolved
postrender.go Outdated Show resolved Hide resolved
@thebaer thebaer added this to the 0.13 milestone Sep 1, 2020
Copy link
Member

@thebaer thebaer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for fixing those! Merging now.

@thebaer thebaer merged commit 211b02c into writefreely:develop Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Embedded YouTube videos cannot start at a certain time using "?start=..."
2 participants