Commit Graph

77 Commits (bc3d454dd6f46292f08f4f724203de22a85800ca)

Author SHA1 Message Date
Kim Alvefur 1de991a04a util.pubsub: Return error code known by pubsub.lib if persistent creation fails 8 years ago
Kim Alvefur 6d639a75d4 util.pubsub: Store subscription changes 8 years ago
Kim Alvefur 4d6226b9eb util.pubsub: Persistence on affiliation change 8 years ago
Kim Alvefur d61f5d7c91 util.pubsub: Remove node from persistent storage on deletion 8 years ago
Kim Alvefur 6e78607820 util.pubsub: Persist nodes on configuration change 8 years ago
Kim Alvefur 994e4de82c util.pubsub: Fix applying per service node defaults when loading from nodestore 8 years ago
Kim Alvefur aebde06b1d util.pubsub: Fix typo 8 years ago
Kim Alvefur 52de579592 util.pubsub: Normalize JID used as affiliation 8 years ago
Kim Alvefur bf88bf5c59 util.pubsub: Also check for affiliation set on bare JID 8 years ago
Kim Alvefur 994723d886 util.pubsub: Pass node and service objects to broadcaster to allow eg config access 8 years ago
Kim Alvefur 9c4ad79120 util.pubsub: Add a default/fallback JID normalization function 8 years ago
Kim Alvefur ee9a168e80 util.pubsub: Don't record the superuser as owner on creation 8 years ago
Kim Alvefur 3096a0770c util.pubsub: Allow setting a callback for validating items to be published 8 years ago
Matthew Wild 1cebb3d7ff util.pubsub: Support a 'nodestore' for persisting nodes (same API as kv stores) 8 years ago
Matthew Wild c9dcb71c68 util.pubsub: Move service methods object creation (just code reorganisation) 8 years ago
Matthew Wild 2881279d6b util.pubsub: For clarity, split config tables from their metatables 8 years ago
Kim Alvefur 5bafb3680d util.pubsub: Recreate itemstore if persist_items changes or resize it if max_items changes 8 years ago
Kim Alvefur 11b0084551 util: Various minor changes to please [luacheck] 8 years ago
Kim Alvefur b422946878 util.pubsub: Add method for retreiving the last item (useful for sending on subscribe) 8 years ago
Kim Alvefur fc7955077e util.pubsub: Return an empty list if specific item asked for does not exist (thanks jonasw) 8 years ago
Kim Alvefur 6ff9ebcd2b pubsub: Distinguish internal representation of node config from XEP-0060 form (util.pubsub should be protocol-agnostic) 8 years ago
Kim Alvefur 3a65e49a43 util.pubsub: Remove inclusion of publisher 8 years ago
Kim Alvefur 1b147b03d4 util.pubsub: Return item-not-found if a single item is requested, and not there 8 years ago
Kim Alvefur 44c873b647 util.pubsub: Clear data on node deletion 8 years ago
Kim Alvefur f8505ab244 util.pubsub: Clear data store if it supports being cleared, otherwise fall back to creating a new one 8 years ago
Kim Alvefur 6d90645c0a util.pubsub: Don't record publisher when superuser privileges are used (eg by modules) 9 years ago
Kim Alvefur a7a4931456 util.pubsub: Catch overriden id from storage 9 years ago
Emmanuel Gil Peyrot 18c92af849 util.pubsub: Add the publisher as an attribute in the item element. 9 years ago
Emmanuel Gil Peyrot aef168e507 util.pubsub: Add a node parameter to itemstore(). 9 years ago
Kim Alvefur bbb91af188 util.pubsub: Fix item retrieval by including the item order as it was before using util.cache (thanks walduhu) 9 years ago
Kim Alvefur de5e008d57 util.pubsub: Rename loop variable to avoid name clash [luacheck] 9 years ago
Kim Alvefur 176661cc07 util.pubsub: Factor item storage cache into a per service configurable option 9 years ago
Kim Alvefur 3dc53e9886 util.pubsub: Switch to use util.cache for item data 9 years ago
Kim Alvefur 3015aac8bc util.*: Remove use of module() function, make all module functions local and return them in a table at the end 11 years ago
Philipp Hancke e5282813cb mod_pubsub: Add support for including the publisher in item broadcasts 11 years ago
Kim Alvefur 33530258c0 util.pubsub: Add support for limiting the number of item in a node (default to 20) 11 years ago
Kim Alvefur 54252eecb4 util.pubsub: Add support for node configuration 11 years ago
Kim Alvefur d8283439b2 util.pubsub: One less table allocated per pubsub object created 11 years ago
Kim Alvefur cf3215b032 util.pubsub: Use local 11 years ago
Kim Alvefur 5151038c3a util.pubsub: Separate data from node configuration 12 years ago
Kim Alvefur f4ad02905f util.pubsub: Fire events on more actions 12 years ago
Kim Alvefur 3fd77923da mod_pubsub, util.pubsub: Keep track of the order of items 12 years ago
Florian Zeitz 4b618a8727 Remove all trailing whitespace 13 years ago
Florian Zeitz 81fdc0c7b6 util.pubsub: Check whether node exists, when deleting 13 years ago
Kim Alvefur d162fd9921 util.pubsub: Fix get_subscriptions to not pass a boolean as node name (thanks jonas) 13 years ago
Kim Alvefur 517296667e mod_pubsub, util.pubsub: Add delete action 13 years ago
Waqas Hussain c8529ea3ab util.pubsub: Fix nil access error in get_subscriptions. 13 years ago
Florian Zeitz 75ef4319b9 mod_pubsub, util.pubsub: Don't send purge notifications in an <items/> element 13 years ago
Kim Alvefur fb589d8634 mod_pubsub, util.pubsub: Implement the purge action 13 years ago
Matthew Wild cfceef5b22 util.pubsub: Add item-published event 13 years ago