Add 'authorId' to /api/v1/trending and /api/v1/top

このコミットが含まれているのは:
Omar Roth 2018-09-19 10:37:00 -05:00
コミット 0f5b93e394
1個のファイルの変更2行の追加0行の削除

ファイルの表示

@ -2405,6 +2405,7 @@ get "/api/v1/trending" do |env|
json.field "viewCount", video.views
json.field "author", video.author
json.field "authorId", video.ucid
json.field "authorUrl", "/channel/#{video.ucid}"
json.field "published", video.published.epoch
@ -2435,6 +2436,7 @@ get "/api/v1/top" do |env|
json.field "viewCount", video.views
json.field "author", video.author
json.field "authorId", video.ucid
json.field "authorUrl", "/channel/#{video.ucid}"
json.field "published", video.published.epoch
json.field "publishedText", "#{recode_date(video.published)} ago"