Software /
code /
verse
Comparison
plugins/archive.lua @ 490:6b2f31da9610
Update for new Prosody module namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 20 May 2023 20:48:03 +0200 |
parent | 462:51c3da615ff4 |
comparison
equal
deleted
inserted
replaced
489:39ed19f12dca | 490:6b2f31da9610 |
---|---|
1 -- This implements XEP-0313: Message Archive Management | 1 -- This implements XEP-0313: Message Archive Management |
2 -- http://xmpp.org/extensions/xep-0313.html | 2 -- http://xmpp.org/extensions/xep-0313.html |
3 -- (ie not XEP-0136) | 3 -- (ie not XEP-0136) |
4 | 4 |
5 local verse = require "verse"; | 5 local verse = require "verse"; |
6 local st = require "util.stanza"; | 6 local st = require "prosody.util.stanza"; |
7 local xmlns_mam = "urn:xmpp:mam:2" | 7 local xmlns_mam = "urn:xmpp:mam:2" |
8 local xmlns_forward = "urn:xmpp:forward:0"; | 8 local xmlns_forward = "urn:xmpp:forward:0"; |
9 local xmlns_delay = "urn:xmpp:delay"; | 9 local xmlns_delay = "urn:xmpp:delay"; |
10 local new_id = require "util.id".short; | 10 local new_id = require "prosody.util.id".short; |
11 local parse_datetime = require "util.datetime".parse; | 11 local parse_datetime = require "prosody.util.datetime".parse; |
12 local datetime = require "util.datetime".datetime; | 12 local datetime = require "prosody.util.datetime".datetime; |
13 local dataform = require"util.dataforms".new; | 13 local dataform = require"prosody.util.dataforms".new; |
14 local rsm = require "util.rsm"; | 14 local rsm = require "prosody.util.rsm"; |
15 local NULL = {}; | 15 local NULL = {}; |
16 | 16 |
17 local query_form = dataform { | 17 local query_form = dataform { |
18 { name = "FORM_TYPE"; type = "hidden"; value = xmlns_mam; }; | 18 { name = "FORM_TYPE"; type = "hidden"; value = xmlns_mam; }; |
19 { name = "with"; type = "jid-single"; }; | 19 { name = "with"; type = "jid-single"; }; |