include normalized artist url in artist json

This commit is contained in:
r888888888
2017-05-30 12:01:07 -07:00
parent 7a3431caaa
commit 3a49b3c54b
2 changed files with 2 additions and 1 deletions

View File

@@ -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"));

View File

@@ -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),