aboutsummaryrefslogtreecommitdiffstats
path: root/util/pubsub.lua
Commit message (Collapse)AuthorAgeFilesLines
* util.pubsub: Add method for retreiving the last item (useful for sending on ↵Kim Alvefur2017-11-071-0/+9
| | | | subscribe)
* util.pubsub: Return an empty list if specific item asked for does not exist ↵Kim Alvefur2017-10-181-1/+1
| | | | (thanks jonasw)
* pubsub: Distinguish internal representation of node config from XEP-0060 ↵Kim Alvefur2017-10-171-2/+3
| | | | form (util.pubsub should be protocol-agnostic)
* util.pubsub: Remove inclusion of publisherKim Alvefur2017-10-161-3/+0
| | | | | util.pubsub should stay agnostic of what data types are published and this depended on util.stanza
* util.pubsub: Return item-not-found if a single item is requested, and not thereKim Alvefur2017-10-101-1/+5
|
* util.pubsub: Clear data on node deletionKim Alvefur2017-10-091-0/+3
|
* util.pubsub: Clear data store if it supports being cleared, otherwise fall ↵Kim Alvefur2017-10-081-1/+5
| | | | back to creating a new one
* util.pubsub: Don't record publisher when superuser privileges are used (eg ↵Kim Alvefur2017-07-291-1/+3
| | | | by modules)
* util.pubsub: Catch overriden id from storageKim Alvefur2017-04-261-0/+1
|
* util.pubsub: Add the publisher as an attribute in the item element.Emmanuel Gil Peyrot2017-04-021-0/+1
| | | | | This makes the backend able to obtain the publisher without changing the API.
* util.pubsub: Add a node parameter to itemstore().Emmanuel Gil Peyrot2017-04-021-4/+4
| | | | | This allows the backend to know the node name, when it needs to differentiate it at storage for example.
* util.pubsub: Fix item retrieval by including the item order as it was before ↵Kim Alvefur2016-11-191-0/+1
| | | | using util.cache (thanks walduhu)
* util.pubsub: Rename loop variable to avoid name clash [luacheck]Kim Alvefur2016-10-181-5/+5
|
* util.pubsub: Factor item storage cache into a per service configurable optionKim Alvefur2016-10-161-3/+4
|
* util.pubsub: Switch to use util.cache for item dataKim Alvefur2016-10-161-33/+23
|
* util.*: Remove use of module() function, make all module functions local and ↵Kim Alvefur2015-02-211-4/+4
| | | | return them in a table at the end
* mod_pubsub: Add support for including the publisher in item broadcastsPhilipp Hancke2014-11-201-1/+1
|
* util.pubsub: Add support for limiting the number of item in a node (default ↵Kim Alvefur2014-09-281-0/+11
| | | | to 20)
* util.pubsub: Add support for node configurationKim Alvefur2014-09-281-2/+22
|
* util.pubsub: One less table allocated per pubsub object createdKim Alvefur2014-09-281-3/+3
|
* util.pubsub: Use localKim Alvefur2014-09-271-1/+1
|
* util.pubsub: Separate data from node configurationKim Alvefur2013-12-301-7/+26
|
* util.pubsub: Fire events on more actionsKim Alvefur2013-12-261-0/+4
|
* Remove all trailing whitespaceFlorian Zeitz2013-08-091-5/+5
|
* util.pubsub: Check whether node exists, when deletingFlorian Zeitz2013-06-121-0/+3
|
* util.pubsub: Fix get_subscriptions to not pass a boolean as node name ↵Kim Alvefur2013-05-261-1/+1
| | | | (thanks jonas)
* mod_pubsub, util.pubsub: Add delete actionKim Alvefur2013-01-311-0/+12
|
* util.pubsub: Fix nil access error in get_subscriptions.Waqas Hussain2013-01-261-1/+1
|
* mod_pubsub, util.pubsub: Don't send purge notifications in an <items/> elementFlorian Zeitz2013-01-251-9/+18
|
* mod_pubsub, util.pubsub: Implement the purge actionKim Alvefur2013-01-241-1/+9
|
* util.pubsub: Add item-published eventMatthew Wild2012-11-151-0/+1
|
* util.pubsub: Remove access checking from remove_all_subscriptions (temporarily?)Matthew Wild2011-08-301-14/+0
|
* util.pubsub: Add service:remove_all_subscriptions()Matthew Wild2011-08-301-0/+26
|
* util.pubsub: Support for events (currently subscription-added and ↵Matthew Wild2011-08-301-0/+5
| | | | subscription-removed)
* util.pubsub: Use built-in actor for auto-creating nodes on publish and ↵Matthew Wild2011-08-291-2/+2
| | | | subscribe (so they never fail due to permissions)
* util.pubsub: Pass true instead of nil as the actor in a bunch of places, and ↵Matthew Wild2011-01-081-7/+7
| | | | fix a bunch of methods to not traceback on this (those with *_other capability checking).
* util.pubsub: Some tidying/optimisation to service:may()Matthew Wild2011-01-081-4/+3
|
* util.pubsub: Return correct node in get_subscriptions()Kim Alvefur2010-12-221-1/+1
|
* util.pubsub: Use correct node name when returning a list of multiple nodes ↵Matthew Wild2010-12-221-1/+1
| | | | in a subscriptions response
* util.pubsub: Add service-wide subscription tracking, and add ↵Matthew Wild2010-12-221-0/+75
| | | | :get_subscriptions()
* util.pubsub: Small code tidying for :get_subscription()Matthew Wild2010-12-221-2/+3
|
* util.pubsub: Fix traceback when using autocreate-on-subscribeMatthew Wild2010-12-221-0/+1
|
* util.pubsub: Add service:jids_equal() and new config option normalize_jidMatthew Wild2010-12-221-3/+8
|
* util.pubsub: get_items(): When requesting a specific item, use the id as a ↵Matthew Wild2010-12-221-1/+1
| | | | key to mirror the multiple-item case
* util.pubsub: Add service:set_node_capabilities()Matthew Wild2010-12-211-0/+15
|
* util.pubsub: Fix nil global access in get_nodes()Matthew Wild2010-12-211-1/+1
|
* util.pubsub: Too many changes to list or split sensibly. Added access ↵Matthew Wild2010-12-211-18/+168
| | | | control to all methods, with capabilities support. Renamed get() -> get_items() and changed it to return true, result on success. Support for autocreate_on_subscribe and autocreate_on_publish config options.
* util.pubsub: Modify new() to take a config, and add a default config via a ↵Matthew Wild2010-12-211-2/+13
| | | | metatable
* util.pubsub: Add service:get_nodes()Matthew Wild2010-12-171-0/+4
|
* mod_pubsub: Support item retractionFlorian Zeitz2010-12-051-0/+12
|