mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-02 08:53:13 +05:30
Add 'authorId' to /api/v1/trending and /api/v1/top
This commit is contained in:
parent
54f9941c7b
commit
0f5b93e394
@ -2405,6 +2405,7 @@ get "/api/v1/trending" do |env|
|
|||||||
json.field "viewCount", video.views
|
json.field "viewCount", video.views
|
||||||
|
|
||||||
json.field "author", video.author
|
json.field "author", video.author
|
||||||
|
json.field "authorId", video.ucid
|
||||||
json.field "authorUrl", "/channel/#{video.ucid}"
|
json.field "authorUrl", "/channel/#{video.ucid}"
|
||||||
|
|
||||||
json.field "published", video.published.epoch
|
json.field "published", video.published.epoch
|
||||||
@ -2435,6 +2436,7 @@ get "/api/v1/top" do |env|
|
|||||||
json.field "viewCount", video.views
|
json.field "viewCount", video.views
|
||||||
|
|
||||||
json.field "author", video.author
|
json.field "author", video.author
|
||||||
|
json.field "authorId", video.ucid
|
||||||
json.field "authorUrl", "/channel/#{video.ucid}"
|
json.field "authorUrl", "/channel/#{video.ucid}"
|
||||||
json.field "published", video.published.epoch
|
json.field "published", video.published.epoch
|
||||||
json.field "publishedText", "#{recode_date(video.published)} ago"
|
json.field "publishedText", "#{recode_date(video.published)} ago"
|
||||||
|
Loading…
Reference in New Issue
Block a user