kopia lustrzana https://github.com/iv-org/invidious
Simplify creation of empty json array
Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
rodzic
eafaf4a82a
commit
ee9f4e21ab
|
@ -61,10 +61,7 @@ def extract_channel_community(items, *, ucid, locale, format, thin_mode, is_sing
|
||||||
response = JSON.build do |json|
|
response = JSON.build do |json|
|
||||||
json.object do
|
json.object do
|
||||||
json.field "authorId", ucid
|
json.field "authorId", ucid
|
||||||
json.field "comments" do
|
json.field "comments", json.array { }
|
||||||
json.array do
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return response
|
return response
|
||||||
|
|
Ładowanie…
Reference in New Issue