comparison 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
comparison
equal deleted inserted replaced
3340:6081cbfd1220 3341:1e1dbd7e5b6c
324 }); 324 });
325 325
326 module:log("info", "URL: <%s>; Storage path: %s", module:http_url(), storage_path); 326 module:log("info", "URL: <%s>; Storage path: %s", module:http_url(), storage_path);
327 327
328 function module.command(args) 328 function module.command(args)
329 datamanager = require "core.storagemanager".olddm;
329 -- luacheck: ignore 421/user 330 -- luacheck: ignore 421/user
330 if args[1] == "expire" then 331 if args[1] == "expire" then
331 local split = require "util.jid".prepped_split; 332 local split = require "util.jid".prepped_split;
332 for i = 2, #args do 333 for i = 2, #args do
333 local user, host = split(args[i]); 334 local user, host = split(args[i]);