fixes #3102
This commit is contained in:
@@ -96,7 +96,7 @@ class PixivApiClient
|
||||
@page_count = json["page_count"].to_i
|
||||
@artist_commentary_title = json["title"]
|
||||
@artist_commentary_desc = json["caption"]
|
||||
@tags = [json["tags"], json["tools"]].flatten.compact
|
||||
@tags = [json["tags"], json["tools"]].flatten.compact.reject {|x| x =~ /^http:/}
|
||||
|
||||
if page_count > 1
|
||||
@pages = json["metadata"]["pages"].map {|x| x["image_urls"]["large"]}
|
||||
|
||||
@@ -54,6 +54,7 @@ module Sources
|
||||
tag
|
||||
end
|
||||
end
|
||||
untranslated_tags.reject! {|x| x.blank?}
|
||||
WikiPage.other_names_equal(untranslated_tags).map{|wiki_page| [wiki_page.title, wiki_page.category_name]}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user