mirror of
https://github.com/iv-org/invidious.git
synced 2026-02-18 01:58:30 -06:00
Playlist API: return empty author url if ucid is empty
This commit is contained in:
parent
a9f812799c
commit
f18ab3c1f9
@ -107,7 +107,11 @@ struct Playlist
|
|||||||
|
|
||||||
json.field "author", self.author
|
json.field "author", self.author
|
||||||
json.field "authorId", self.ucid
|
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 "subtitle", self.subtitle
|
||||||
|
|
||||||
json.field "authorThumbnails" do
|
json.field "authorThumbnails" do
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user