mirror of
https://github.com/iv-org/invidious.git
synced 2024-08-30 18:23:25 +00:00
Simplify creation of empty json array
Co-Authored-By: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
parent
4e9b102c04
commit
4380fcf60c
@ -61,10 +61,7 @@ def extract_channel_community(items, *, ucid, locale, format, thin_mode, is_sing
|
||||
response = JSON.build do |json|
|
||||
json.object do
|
||||
json.field "authorId", ucid
|
||||
json.field "comments" do
|
||||
json.array do
|
||||
end
|
||||
end
|
||||
json.field "comments", json.array { }
|
||||
end
|
||||
end
|
||||
return response
|
||||
|
Loading…
Reference in New Issue
Block a user