mirror of
https://github.com/iv-org/invidious.git
synced 2026-02-12 15:18:29 -06:00
Playlist API: return empty author url if ucid is empty (#5618)
This commit is contained in:
parent
864893f4c7
commit
84a699f7b7
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user