equal
deleted
inserted
replaced
239 table.insert(prefix, jid.escape(username or "@")); |
239 table.insert(prefix, jid.escape(username or "@")); |
240 if not query then |
240 if not query then |
241 query = {}; |
241 query = {}; |
242 end |
242 end |
243 if query["with"] then |
243 if query["with"] then |
244 table.insert(prefix, sha256(jid.prep(query["with"]), true):sub(1,24)); |
244 table.insert(prefix, jid.escape(jid.prep(query["with"]), true):sub(1,24)); |
245 if query["start"] and query["end"] and dt.date(query["start"]) == dt.date(query["end"]) then |
245 if query["start"] and query["end"] and dt.date(query["start"]) == dt.date(query["end"]) then |
246 table.insert(prefix, sha256(jid.prep(query["with"]), true):sub(1,24)); |
246 table.insert(prefix, dt.date(query["start"])); |
247 end |
247 end |
248 end |
248 end |
249 |
249 |
250 prefix = url.build_path(prefix); |
250 prefix = url.build_path(prefix); |
251 local list_result, err = async.wait_for(new_request(self, "GET", bucket_path, { |
251 local list_result, err = async.wait_for(new_request(self, "GET", bucket_path, { |