Playlist API: return empty author url if ucid is empty

This commit is contained in:
Cameron Radmore 2026-02-03 17:17:46 -05:00
parent a9f812799c
commit f18ab3c1f9
No known key found for this signature in database
GPG Key ID: 51E32B9B64747796

View File

@ -107,7 +107,11 @@ struct Playlist
json.field "author", self.author
json.field "authorId", self.ucid
if !self.ucid.empty?
json.field "authorUrl", "/channel/#{self.ucid}"
else
json.field "authorUrl", ""
end
json.field "subtitle", self.subtitle
json.field "authorThumbnails" do