make authorVerified a bool value

This commit is contained in:
ChunkyProgrammer 2024-04-16 18:21:45 -04:00 committed by Fijxu
parent f7175898c8
commit b3301ef15c
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -227,7 +227,7 @@ module Invidious::JSONify::APIv1
json.field "author", rv["author"]
json.field "authorUrl", "/channel/#{rv["ucid"]?}"
json.field "authorId", rv["ucid"]?
json.field "authorVerified", rv["author_verified"]
json.field "authorVerified", rv["author_verified"] == "true"
if rv["author_thumbnail"]?
json.field "authorThumbnails" do
json.array do