aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-02 14:31:00 +0200
committerKim Alvefur <zash@zash.se>2023-07-02 14:31:00 +0200
commit4e6ccdad9644b346172681e42c9a211f32e1ec35 (patch)
tree3eb10483c00495d732c2f31df53114e62c9b1e77
parent915ef3a222a4b2b1472fe73dc88f7ce4e4a9420b (diff)
downloadprosody-4e6ccdad9644b346172681e42c9a211f32e1ec35.tar.gz
prosody-4e6ccdad9644b346172681e42c9a211f32e1ec35.zip
mod_http_file_share: Put 'expires' back, thought it was unused
Removed in 536055476912 because it was not used anywhere else in the file, but per the documentation it is meant to inform external upload services of the expiry time of the upload itself.
-rw-r--r--plugins/mod_http_file_share.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua
index d5f3a058..f9f227cd 100644
--- a/plugins/mod_http_file_share.lua
+++ b/plugins/mod_http_file_share.lua
@@ -182,6 +182,7 @@ function get_authz(slot, uploader, filename, filesize, filetype)
-- slot properties
slot = slot;
+ expires = expiry >= 0 and (os.time()+expiry) or nil;
-- file properties
filename = filename;
filesize = filesize;