mirror of
https://github.com/iv-org/invidious.git
synced 2026-02-05 18:39:57 +00:00
Playlist API: return empty author url if ucid is empty (#5618)
This commit is contained in:
@@ -107,7 +107,11 @@ struct Playlist
|
||||
|
||||
json.field "author", self.author
|
||||
json.field "authorId", self.ucid
|
||||
json.field "authorUrl", "/channel/#{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
|
||||
|
||||
Reference in New Issue
Block a user