mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Simplify creation of empty json array
Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
902b2f13ff
commit
4656c20317
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue