diff mod_http_upload/mod_http_upload.lua @ 3341:1e1dbd7e5b6c

mod_http_upload: Use legacy datamanager directly (makes it work)
author Kim Alvefur <zash@zash.se>
date Thu, 27 Sep 2018 20:16:15 +0200
parents 6081cbfd1220
children 6d1c5ecf72c1
line wrap: on
line diff
--- a/mod_http_upload/mod_http_upload.lua	Thu Sep 27 20:03:10 2018 +0200
+++ b/mod_http_upload/mod_http_upload.lua	Thu Sep 27 20:16:15 2018 +0200
@@ -326,6 +326,7 @@
 module:log("info", "URL: <%s>; Storage path: %s", module:http_url(), storage_path);
 
 function module.command(args)
+	datamanager = require "core.storagemanager".olddm;
 	-- luacheck: ignore 421/user
 	if args[1] == "expire" then
 		local split = require "util.jid".prepped_split;