artist_url.rb: remove legacy artist url normalization code.
* `legacy_normalize` came from c6012535, which is no longer a problem.
* `normalize_for_search` is only used for "[mass edit]" links
in artist entries. These links are a shortcut for performing a
`-artist_name source:<artist_url> -> artist_name` mass edit to tag
untagged artists, but this won't work for most sites these days.
This commit is contained in:
@@ -60,10 +60,6 @@ class ArtistVersion < ApplicationRecord
|
||||
new_urls = url_array
|
||||
old_urls = version.present? ? version.url_array : []
|
||||
|
||||
latest_urls = latest_urls.map {|url| ArtistUrl.legacy_normalize(url)}
|
||||
new_urls = new_urls.map {|url| ArtistUrl.legacy_normalize(url)}
|
||||
old_urls = old_urls.map {|url| ArtistUrl.legacy_normalize(url)}
|
||||
|
||||
added_urls = new_urls - old_urls
|
||||
removed_urls = old_urls - new_urls
|
||||
|
||||
|
||||
Reference in New Issue
Block a user