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

This commit is contained in:
Albert Yi
2016-10-24 11:50:22 -07:00
parent 080eecb6b9
commit e8336afd81
3 changed files with 14 additions and 2 deletions

View File

@@ -9,7 +9,6 @@ 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")
@@ -45,7 +44,6 @@ 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")