normalized artist urls are always downcased

This commit is contained in:
Albert Yi
2016-10-18 16:32:35 -07:00
parent e78b7d2a8c
commit 7cad4a3f68

View File

@@ -9,6 +9,7 @@ class ArtistUrl < ActiveRecord::Base
if url.nil?
nil
else
url = url.downcase
url = url.gsub(/^https:\/\//, "http://")
url = url.gsub(/^http:\/\/blog\d+\.fc2/, "http://blog.fc2")
url = url.gsub(/^http:\/\/blog-imgs-\d+\.fc2/, "http://blog.fc2")