From 0f5b93e394f918d56e25e5c889621a43f65fa6bd Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 19 Sep 2018 10:37:00 -0500 Subject: [PATCH] Add 'authorId' to /api/v1/trending and /api/v1/top --- src/invidious.cr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/invidious.cr b/src/invidious.cr index fdefa029..ddc9b1b0 100644 --- a/src/invidious.cr +++ b/src/invidious.cr @@ -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"