normalize https into http for artist urls

This commit is contained in:
Albert Yi
2018-07-27 14:25:47 -07:00
parent 135b97d511
commit 95b72f5f5c

View File

@@ -38,6 +38,7 @@ class ArtistUrl < ApplicationRecord
rescue Sources::Site::NoStrategyError
end
url = url.gsub(/\/+\Z/, "")
url = url.gsub(%r!^https://!, "http://")
url + "/"
end
end