pawoo: fetch tags and commentary.
This commit is contained in:
@@ -47,6 +47,17 @@ class PawooApiClient
|
||||
def image_urls
|
||||
json["media_attachments"].map {|x| x["url"]}
|
||||
end
|
||||
|
||||
def tags
|
||||
json["tags"].map { |tag| [tag["name"], tag["url"]] }
|
||||
end
|
||||
|
||||
def commentary
|
||||
commentary = ""
|
||||
commentary << "<p>#{json["spoiler_text"]}</p>" if json["spoiler_text"].present?
|
||||
commentary << json["content"]
|
||||
commentary
|
||||
end
|
||||
end
|
||||
|
||||
def get_status(url)
|
||||
|
||||
Reference in New Issue
Block a user