Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
AO3-5192: Convert embeds to https where appropriate #3097
Conversation
| @@ -120,6 +120,21 @@ module Transformers | ||
| return if source.nil? | ||
| allow_flashvars = ["ning", "vidders.net", "google", "criticalcommons", "archiveofourown", "podfic", "spotify", "8tracks", "soundcloud"] | ||
| + supports_https = [ |
| + desc "Enforce HTTPS where available for embedded media" | ||
| + task(enforce_https: :environment) do | ||
| + Chapter.find_each do |chapter| | ||
| + if chapter.content.match /<(embed|iframe)/ |
sarken
merged commit 27d1d4f
into
otwcode:master
Oct 4, 2017
sarken
added
the
Reviewed: Ready to Merge
label
Oct 4, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
elzj commentedOct 4, 2017
Issue
https://otwarchive.atlassian.net/browse/AO3-5192
Purpose
Adds code to upgrade embeds to https where supported and a rake task to update current chapters.
Testing
See issue.