Software /
code /
prosody
Comparison
plugins/mod_http_file_share.lua @ 13230:26c30844cac6
plugins: Handle how get_option_period returns "never"
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 21 Jul 2023 17:23:00 +0200 |
parent | 13213:50324f66ca2a |
child | 13259:9097149923ae |
comparison
equal
deleted
inserted
replaced
13229:bb7177efbf41 | 13230:26c30844cac6 |
---|---|
174 -- token properties | 174 -- token properties |
175 sub = uploader; | 175 sub = uploader; |
176 | 176 |
177 -- slot properties | 177 -- slot properties |
178 slot = slot; | 178 slot = slot; |
179 expires = expiry >= 0 and (os.time()+expiry) or nil; | 179 expires = expiry < math.huge and (os.time()+expiry) or nil; |
180 -- file properties | 180 -- file properties |
181 filename = filename; | 181 filename = filename; |
182 filesize = filesize; | 182 filesize = filesize; |
183 filetype = filetype; | 183 filetype = filetype; |
184 }); | 184 }); |