include normalized artist url in artist json
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
var new_artist_href = "/artists/new?other_names="
|
||||
+ encodeURIComponent(data.artist_name)
|
||||
+ "&urls="
|
||||
+ encodeURIComponent([data.profile_url, data.image_url].join("\n"));
|
||||
+ encodeURIComponent($.unique([data.profile_url, data.normalized_for_artist_finder_url]).join("\n"));
|
||||
|
||||
$("#source-record").html($("<a>").attr("href", new_artist_href).text("Create New"));
|
||||
|
||||
|
||||
@@ -62,6 +62,7 @@ module Sources
|
||||
:artist_name => artist_name,
|
||||
:profile_url => profile_url,
|
||||
:image_url => image_url,
|
||||
:normalized_for_artist_finder_url => normalize_for_artist_finder!,
|
||||
:tags => tags,
|
||||
:translated_tags => translated_tags,
|
||||
:danbooru_name => artist_record.try(:first).try(:name),
|
||||
|
||||
Reference in New Issue
Block a user