fixes #2718: Twitter artist finding should not be case sensitive

This commit is contained in:
Albert Yi
2016-10-18 16:51:59 -07:00
parent 7cad4a3f68
commit 4b8d014b2f

View File

@@ -45,6 +45,7 @@ class ArtistUrl < ActiveRecord::Base
url = File.dirname(url)
end
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")