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-5086 Update Spotify subdomain for embeds #3079

Merged
merged 3 commits into from Nov 25, 2017
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Split
@@ -106,7 +106,7 @@ module Transformers
then "archiveofourown"
when /^podfic\.com\//
then "podfic"
- when /^(embed\.)?spotify\.com\//
+ when /^(open\.)?spotify\.com\//
@houndci-bot

houndci-bot Sep 26, 2017

Indent when as deep as case.
Use %r around regular expression.

then "spotify"
when /^8tracks\.com\//
then "8tracks"
@@ -207,7 +207,7 @@
%w{youtube.com youtube-nocookie.com vimeo.com player.vimeo.com static.ning.com ning.com dailymotion.com
metacafe.com vidders.net criticalcommons.org google.com archiveofourown.org podfic.com archive.org
- embed.spotify.com spotify.com 8tracks.com w.soundcloud.com soundcloud.com viddertube.com}.each do |source|
+ open.spotify.com spotify.com 8tracks.com w.soundcloud.com soundcloud.com viddertube.com}.each do |source|
it "should allow embeds from #{source}" do
html = '<iframe width="560" height="315" src="//' + source + '/embed/123" frameborder="0"></iframe>'