mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
API: Add 'authorVerified' field on recommended videos (#4562)
Closes 3323
This commit is contained in:
commit
bd549f21e9
1 changed files with 1 additions and 0 deletions
|
@ -227,6 +227,7 @@ module Invidious::JSONify::APIv1
|
||||||
json.field "author", rv["author"]
|
json.field "author", rv["author"]
|
||||||
json.field "authorUrl", "/channel/#{rv["ucid"]?}"
|
json.field "authorUrl", "/channel/#{rv["ucid"]?}"
|
||||||
json.field "authorId", rv["ucid"]?
|
json.field "authorId", rv["ucid"]?
|
||||||
|
json.field "authorVerified", rv["author_verified"] == "true"
|
||||||
if rv["author_thumbnail"]?
|
if rv["author_thumbnail"]?
|
||||||
json.field "authorThumbnails" do
|
json.field "authorThumbnails" do
|
||||||
json.array do
|
json.array do
|
||||||
|
|
Loading…
Reference in a new issue