aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-04-05 17:21:18 +0200
committerKim Alvefur <zash@zash.se>2021-04-05 17:21:18 +0200
commitecd6b31eea9a7e49e4da6b5d0cb4d39d573e3dad (patch)
tree3d0b1cc39e282be178fec8c330e1c654fcca303a
parente590c9c92ee9a3818f3e5141d718bc07613848d5 (diff)
downloadprosody-ecd6b31eea9a7e49e4da6b5d0cb4d39d573e3dad.tar.gz
prosody-ecd6b31eea9a7e49e4da6b5d0cb4d39d573e3dad.zip
mod_http_file_share: Include expiry time of the upload itself in token
Lets an external upload service know this so it can do expiry itself. Could possibly have been calculated based on the token expiry or issuance time, explicit > implicit.
-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 9e542dff..0ef6f856 100644
--- a/plugins/mod_http_file_share.lua
+++ b/plugins/mod_http_file_share.lua
@@ -142,6 +142,7 @@ local now = os.time();
-- slot properties
slot = slot;
+ expires = expiry >= 0 and (now+expiry) or nil;
-- file properties
filename = filename;
filesize = filesize;