Commit graph

132 commits

Author SHA1 Message Date
Matthew Wild
7ea43e6607 pubsub.lib: Add support for pubsub#publish_model 2018-08-06 11:23:42 +01:00
Matthew Wild
39b3521233 pubsub.lib: Code formatting change 2018-08-06 11:22:05 +01:00
Matthew Wild
ff03ef384f pubsub.lib: Add comment about tonumber hack 2018-08-06 08:39:46 +01:00
Matthew Wild
01e11dd723 pubsub.lib: Enable publish-options by default 2018-08-06 08:29:49 +01:00
Matthew Wild
96509275b8 Merge with jonasw 2018-08-06 08:21:55 +01:00
Kim Alvefur
27bbd90669 mod_pubsub: Pass the current values to dataforms 2018-08-05 15:52:19 +02:00
Kim Alvefur
553b67ccd0 mod_pubsub: Use util.pubsub API for retrieving node config instead
Normalizes access control to the 'get_configuration' capability

Thanks pep.
2018-08-05 19:12:49 +02:00
Matthew Wild
cd89bab127 pubsub.lib: Support for publish-options behind a feature flag, 'enable_publish_options' 2018-08-05 00:08:07 +01:00
Matthew Wild
1f1ebdeecc pubsub.lib: Add support for precondition-not-met error 2018-08-04 21:37:48 +01:00
Matthew Wild
4c86f3f3b6 pubsub.lib: Advertise peristent-items feature when nodes and items are persisted 2018-08-04 21:36:59 +01:00
Kim Alvefur
d28f6ca5ef mod_pubsub: Advertise default access model in disco 2018-08-04 03:33:21 +02:00
Kim Alvefur
36c052a165 mod_pubsub: Add access model to configuration form 2018-08-04 03:38:38 +02:00
Matthew Wild
8e01ccceaa pubsub.lib: Support for not-acceptable error 2018-08-01 19:18:25 +01:00
Kim Alvefur
89360a401b mod_pubsub: Enforce max_items on insertion 2018-07-31 20:33:58 +02:00
Kim Alvefur
287b09ab31 mod_pubsub: Add support for changing subscription options 2018-07-14 20:18:49 +02:00
Kim Alvefur
8942bafa1a mod_pubsub: Add support for retrieving subscription options 2018-07-14 19:35:26 +02:00
Kim Alvefur
97644a7189 mod_pubsub: Move include_body option into subscription options 2018-07-14 19:34:10 +02:00
Kim Alvefur
47eca5d3fb mod_pubsub: Revert disco#info part from previous commit 2018-07-14 18:49:12 +02:00
Kim Alvefur
5cabe22282 mod_pubsub: Refactor translation to/from XEP-0060-specific node configuration format 2018-07-14 18:42:36 +02:00
Kim Alvefur
c80aae6dee mod_pubsub: Add support for modifying subscriptions
https://xmpp.org/extensions/xep-0060.html#owner-subscriptions-modify
2018-07-13 04:52:43 +02:00
Kim Alvefur
e18193a4ff mod_pubsub: Add support for owner subscription retrieval
https://xmpp.org/extensions/xep-0060.html#owner-subscriptions-retrieve
2018-07-13 04:42:19 +02:00
Kim Alvefur
804606ae75 mod_pubsub: Update max_items on resize (fixes #1082) 2018-07-10 00:52:46 +02:00
Kim Alvefur
76ea0c2107 mod_pubsub: Cache only max_items to avoid holding reference to possibly outdated config
Only max_items is used anyways
2018-07-10 00:51:55 +02:00
Kim Alvefur
b7ac5365ab mod_pubsub: Advertise title and description in disco#info 2018-07-06 18:03:32 +02:00
Kim Alvefur
eb28cd503f mod_pubsub: Move service discovery to pubsub.lib to allow reuse 2018-07-06 18:00:50 +02:00
Kim Alvefur
e0e83371bf mod_pubsub: Support configurable title and description fields 2018-07-06 16:04:53 +02:00
Kim Alvefur
f41fb80972 mod_pubsub: Translate missing fields into node config 2018-07-06 16:04:26 +02:00
Kim Alvefur
530ceb8a40 mod_pubsub: Make pubsub.lib aware of internal-server-error condition 2018-07-01 04:32:26 +02:00
Kim Alvefur
64240e72da mod_pubsub: Apply normalization to JIDs retrieved from attributes 2018-06-26 20:28:53 +02:00
Kim Alvefur
7350198217 mod_pubsub: Handle :set_affiliation errors (not completely in line with the XEP) 2018-06-26 20:27:41 +02:00
Kim Alvefur
a24b2246a6 mod_pubsub: Support for setting affiliations (#622) 2018-06-26 20:29:33 +02:00
Kim Alvefur
ad621959b8 mod_pubsub: Add boilerplate for changing affiliations 2018-06-26 20:00:07 +02:00
Kim Alvefur
e53d777ec6 mod_pubsub: Add the list of affiliations to reply 2018-06-26 19:36:23 +02:00
Kim Alvefur
a0562991c4 mod_pubsub: Retrieve the node object 2018-06-26 19:34:35 +02:00
Kim Alvefur
db95257fa2 mod_pubsub: Boilerplate checks for affiliation retrieval 2018-06-26 19:30:28 +02:00
Kim Alvefur
2a848b980a mod_pubsub: Add stubs for affiliation handling 2018-06-26 19:28:37 +02:00
Kim Alvefur
be2d5e7266 mod_pubsub: Add support for parsing subscription options form (no options supported yet)
This was actually to silence luacheck warnings options andoptions_tag
variables.
2018-05-23 18:15:36 +02:00
Kim Alvefur
8210fb1e86 mod_pubsup: Ignore unused 'self' argument [luacheck] 2018-05-23 18:06:49 +02:00
Kim Alvefur
c5b02dce75 mod_pubsub: Fix syntax error 2018-05-23 01:00:01 +02:00
Kim Alvefur
cc6d427f21 mod_pubsub: Add support for generation of a plain text <body> from Atom payloads
See https://xmpp.org/extensions/xep-0060.html#impl-body
2018-05-21 00:44:37 +02:00
Kim Alvefur
ee3814c0bf mod_pubsub: Make the 'type' attribute on broadcast messages configurable
This adds support for the pubsub#notification_type field in the node
config form.
2018-05-21 00:35:45 +02:00
Kim Alvefur
a957f6c038 mod_pubsub: Allow itemstore to override item ids 2017-11-09 17:22:47 +01:00
Kim Alvefur
476d3cfb23 mod_pubsub/archive_itemstore: Support resize operation 2017-11-09 17:21:50 +01:00
Kim Alvefur
3b0d35ed9a mod_pubsub: Add a tail method (like util.cache) to archive_itemstore 2017-11-07 00:39:35 +01:00
Kim Alvefur
5b91ff0bab mod_pubsub: Update node config names (should have been in 2abbb01cd756) (thanks lovetox) 2017-11-06 21:03:30 +01: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
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
0e1cdb6a2a mod_pubsub: Move dispatch function into pubsub.lib 2017-10-18 07:46:44 +02:00