Commit graph

8454 commits

Author SHA1 Message Date
Kim Alvefur
26f7e8de2c mod_stanza_debug: Logs full stanzas sent and received for debugging purposes 2017-10-23 15:23:03 +02:00
Kim Alvefur
4e1f9c8796 Makefile: Tell busted to use the configured Lua version (or C modules won't load) 2017-10-22 20:41:11 +02:00
Kim Alvefur
a178b327f5 hgignore: Stop ignoring *.report, these are no longer created since switching to busted 2017-10-22 14:39:59 +02:00
Kim Alvefur
1e9ad3b4b3 mod_uptime: Remove unused arguments [luacheck] 2017-10-20 06:54:06 +02:00
Kim Alvefur
ec998641fd util.pubsub: Return an empty list if specific item asked for does not exist (thanks jonasw) 2017-10-18 21:21:43 +02:00
Emmanuel Gil Peyrot
48726b9585 mod_pep_plus: Fix a typo. 2017-10-18 11:43:07 +01:00
Kim Alvefur
8e69673305 mod_pep_plus: Use feature detection from pubsub.lib 2017-10-18 09:43:43 +02:00
Kim Alvefur
dbdac03b2d mod_pubsub: Move service feature dection to pubsub.lib to allow reuse 2017-10-18 09:38:45 +02:00
Kim Alvefur
1fc4aa1192 mod_pep_plus, mod_pubsub: Remove unused reference to pubsub.lib handlers [luacheck] 2017-10-18 09:24:35 +02:00
Kim Alvefur
3233a819e3 mod_pubsub: Use correct variable name [luacheck] 2017-10-18 09:23:27 +02:00
Kim Alvefur
c4c07e032b mod_pubsub: Add support for Create and Configure 2017-10-18 09:08:16 +02:00
Kim Alvefur
721c4e86ba mod_pubsub: Fix namespace conflict with the pubsub#owner namespace 2017-10-18 07:49:44 +02:00
Kim Alvefur
68be29702f mod_pep_plus: Use dispatch function from pubsub.lib 2017-10-18 07:47:00 +02:00
Kim Alvefur
0e1cdb6a2a mod_pubsub: Move dispatch function into pubsub.lib 2017-10-18 07:46:44 +02:00
Kim Alvefur
a9461d5ec8 core.stanza_router: Verify that xmlns exists for firing stanza/iq/xmlns/name events (fixes #1022) (thanks SamWhited) 2017-10-17 07:09:00 +02:00
Kim Alvefur
54944ff807 pubsub: Distinguish internal representation of node config from XEP-0060 form (util.pubsub should be protocol-agnostic) 2017-10-17 05:47:06 +02:00
Kim Alvefur
a416b20494 mod_pep_plus: Advertise additional features not covered by inspection of pubsub service methods 2017-10-17 05:30:09 +02:00
Kim Alvefur
9f06572f33 mod_pep_plus: Fix feature mapping here too (see 29ef191c7bf9) 2017-10-17 20:50:59 +02:00
Kim Alvefur
8fa4c7b78c mod_pep: Advertise pubsub features that I believe to be implented 2017-10-17 05:22:43 +02:00
Kim Alvefur
d0bb8df2d5 mod_pep: Remove disco identity and feature from the host (changed in XEP-0163 version 1.2) 2017-10-17 05:20:11 +02:00
Kim Alvefur
1097322800 mod_pubsub: Fix feature advertising of config-node and retrieve-default
It confused pubsub.lib handler names with util.pubsub service methods
2017-10-17 03:43:57 +02:00
Kim Alvefur
3c4d4322b3 mod_pubsub: Remove expose_publisher argument since it is handled in broadcaster 2017-10-17 00:07:34 +02:00
Kim Alvefur
f2bdafd709 util.pubsub: Remove inclusion of publisher
util.pubsub should stay agnostic of what data types are published and
this depended on util.stanza
2017-10-16 22:12:14 +02:00
Kim Alvefur
639ea8b1ca mod_pubsub: Fix typo in import 2017-10-15 19:03:49 +02:00
Kim Alvefur
0ea0b246fa mod_pubsub: Limit number of items to fetch from archive storage to pubsub#max_items to prevent unbounded query (thanks Martin and lovetox) 2017-10-15 18:59:37 +02:00
Kim Alvefur
669ab5ba13 mod_pubsub: Don't log private data 2017-10-15 11:54:24 +02:00
Kim Alvefur
2855a2ce0a util.debug: Produce a sensible name for nameless upvalues to C functions 2017-10-15 11:42:33 +02:00
Kim Alvefur
9f3c47fb9f mod_pep_plus: Advertise nodes with the correct JID (missed in ec605946e597) (thanks lovetox) 2017-10-13 19:55:33 +02:00
Kim Alvefur
bfd1f93fbf mod_pep_plus: Make node persistence configurable via pubsub#persist_items 2017-10-12 01:37:35 +02:00
Kim Alvefur
5d5432daf7 mod_pep_plus: Advertise pubsub features in disco#info (code adapted from mod_pubsub) 2017-10-12 01:34:32 +02:00
Kim Alvefur
25b5ef2889 mod_pubsub, mod_pep_plus: Rename simple_itemstore to reflect that it's based on archive storage 2017-10-12 01:31:08 +02:00
Kim Alvefur
cb3160b5f9 mod_pubsub: Make sure that a dataform is given to configure 2017-10-11 22:18:26 +02:00
Kim Alvefur
14a3b7858b util.pubsub: Return item-not-found if a single item is requested, and not there 2017-10-10 01:41:47 +02:00
Kim Alvefur
de4181c741 mod_pep_plus: Add missing variable 2017-10-09 13:45:53 +02:00
Kim Alvefur
047dbc4feb net.server_event: Add "libevent" to backend description 2017-10-09 02:22:33 +02:00
Kim Alvefur
6e5c3bd41f mod_pubsub: Hide item persistence behind option (at least until affiliations are also persisted) 2017-10-09 02:08:41 +02:00
Kim Alvefur
d960ca7d6b util.pubsub: Clear data on node deletion 2017-10-09 01:57:55 +02:00
Kim Alvefur
1757bceae2 mod_pubsub: Restore persistence with one archive per node 2017-10-09 01:45:20 +02:00
Kim Alvefur
5091ef0c46 mod_storage_internal: Add more extensive query support to archive:delete method 2017-10-09 01:02:17 +02:00
Kim Alvefur
2477d1c269 mod_storage_internal: Add support for archive key deduplication (like mod_storage_sql) 2017-10-09 01:01:28 +02:00
Kim Alvefur
9938c2203d mod_pubsub: Remove use of non-existent fields 2017-10-09 00:58:45 +02:00
Kim Alvefur
83b02383f6 mod_pep_plus: Update subscriptions for other local users only 2017-10-09 00:11:11 +02:00
Kim Alvefur
85cfe97696 mod_pep_plus: Keep track of nodes, and restore them when later 2017-10-08 23:59:13 +02:00
Kim Alvefur
85d9a52317 mod_pep_plus: Use local username instead of bare JID for references 2017-10-08 23:49:49 +02:00
Kim Alvefur
bed081dc63 mod_pep_plus: Skip over roster metadata (version, pending) entry 2017-10-09 00:05:18 +02:00
Kim Alvefur
15e6420834 mod_pep_plus: Rename variable for clarity 2017-10-08 23:42:55 +02:00
Kim Alvefur
93aefe9a45 mod_pubsub: Workaround some storage modules without archive key deduplication 2017-10-08 21:20:21 +02:00
Kim Alvefur
551afcd4eb mod_pubsub: Ignore unused 'self' since the data used is an upvalue [luacheck] 2017-10-08 19:42:10 +02:00
Kim Alvefur
b4129893d9 mod_pep_plus, mod_pubsub: Store node content in separate archive stores 2017-10-08 01:56:44 +02:00
Kim Alvefur
2572082717 util.datamanager: Encode the 'store' path component, preserving underscores 2017-10-08 18:34:57 +02:00