This commit is contained in:
r888888888
2017-05-09 13:21:21 -07:00
parent ff5586cb01
commit b49641f775
2 changed files with 3 additions and 3 deletions

View File

@@ -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"]
@tags = [json["tags"], json["tools"]].flatten.compact
if page_count > 1
@pages = json["metadata"]["pages"].map {|x| x["image_urls"]["large"]}

View File

@@ -69,7 +69,7 @@ class TwitterService
end
urls.uniq
# rescue => e
# []
rescue => e
[]
end
end