mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 00:31:59 +02:00
plug created_at for missing updated_at
This commit is contained in:
parent
bca7ecb95f
commit
50b1ea65e3
2 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,7 @@ get '/api/list' do
|
|||
new_file[:path] = file[:path]
|
||||
new_file[:is_directory] = file[:is_directory]
|
||||
new_file[:size] = file[:size] unless file[:is_directory]
|
||||
new_file[:created_at] = file[:created_at].rfc2822
|
||||
new_file[:updated_at] = file[:updated_at].rfc2822
|
||||
new_file[:sha1_hash] = file[:sha1_hash] unless file[:is_directory]
|
||||
files << new_file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue