Get "author_verified" using the instance method instead of using the info hash.

Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
RadoslavL 2023-10-09 09:20:35 +03:00 committed by GitHub
parent 7dc9b3f088
commit 8e45e05fba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ module Invidious::JSONify::APIv1
json.field "author", video.author json.field "author", video.author
json.field "authorId", video.ucid json.field "authorId", video.ucid
json.field "authorUrl", "/channel/#{video.ucid}" json.field "authorUrl", "/channel/#{video.ucid}"
json.field "authorVerified", video.info["authorVerified"] json.field "authorVerified", video.author_verified
json.field "authorThumbnails" do json.field "authorThumbnails" do
json.array do json.array do