API: add authorVerified where possible + provide channel tabs list (#3625)

このコミットが含まれているのは:
Samantaz Fox 2023-02-10 23:47:06 +01:00
コミット 27ff8d7c33
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: F42821059186176E
2個のファイルの変更3行の追加0行の削除

ファイルの表示

@ -74,6 +74,7 @@ struct SearchVideo
json.field "author", self.author
json.field "authorId", self.ucid
json.field "authorUrl", "/channel/#{self.ucid}"
json.field "authorVerified", self.author_verified
json.field "videoThumbnails" do
Invidious::JSONify::APIv1.thumbnails(json, self.id)

ファイルの表示

@ -89,6 +89,8 @@ module Invidious::Routes::API::V1::Channels
json.field "descriptionHtml", channel.description_html
json.field "allowedRegions", channel.allowed_regions
json.field "tabs", channel.tabs
json.field "authorVerified", channel.verified
json.field "latestVideos" do
json.array do