weibo: fix bad artist name suggestions in new artist form.

Fix the new artist form suggesting invalid Chinese tag names for Weibo
artists. Suggest `weibo_123456` instead as a placeholder.
This commit is contained in:
evazion
2022-08-26 01:18:54 -05:00
parent 4d009568fd
commit f7794de0b7
2 changed files with 5 additions and 4 deletions

View File

@@ -47,14 +47,14 @@ module Source
end
end
def profile_urls
[parsed_url.profile_url, parsed_referer&.profile_url].compact.uniq
end
def profile_url
"https://www.weibo.com/u/#{artist_id}" if artist_id.present?
end
def tag_name
"weibo_#{artist_id}" if artist_id.present?
end
def artist_name
api_response&.dig("user", "screen_name")
end