Commit Graph

130 Commits (master)

Author SHA1 Message Date
Kim Alvefur 9005d35b48 util.pubsub: Add method returning subset of config as metadata 1 year ago
Kim Alvefur c175dc8265 mod_pubsub: Move precondition error wrangling out of util.pubsub 1 year ago
Kim Alvefur 83ee7e5739 mod_pep: Implement 'roster' (group) access_model 2 years ago
Kim Alvefur 0e1bf3c061 util.pubsub: Fix traceback if node data not initialized 5 years ago
Kim Alvefur 43531740f9 util: Prefix module imports with prosody namespace 3 years ago
Kim Alvefur 8a97d634a4 util.pubsub: Fix item store resize to "max" 4 years ago
Kim Alvefur 4b05d0f240 mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436 4 years ago
Kim Alvefur 1546e59310 util.pubsub: Add support for limiting number of items to retrieve 4 years ago
Kim Alvefur dfed446a5a util.pubsub: Signal that 'persistent-items' is unsupported when disabled 4 years ago
Kim Alvefur ffeeffd35c util.pubsub: Fix behavior of persist_items disabled 4 years ago
Kim Alvefur 8116134258 mod_pubsub: Explicitly enable persistence by default to preserve behavior 4 years ago
Kim Alvefur 3756e3c835 util.pubsub: Handle absence of node data interface 4 years ago
Kim Alvefur 0c9d47f6ff util.pubsub: Silence luacheck warnings, leaving notes on future proper fix 6 years ago
Kim Alvefur f6592c459e util.pubsub: Pass subscribers trough a filter callback 7 years ago
Kim Alvefur 9be2ed1c4b util.pubsub: Factor out calling of broadcaster 7 years ago
Matthew Wild b5b9b70c88 util.pubsub, pubsub.lib and tests: Add text to precondition-not-met error (fixes #1455) 6 years ago
Kim Alvefur 5d4504e51b util.pubsub: Validate node configuration on node creation (fixes #1328) 7 years ago
Kim Alvefur da56744645 util.pubsub: Add support for requesting multiple specific items (needed for #1305) 7 years ago
Kim Alvefur 9f19a48ee2 util.pubsub: Restore subscription index from stored data (fixes #1281) 7 years ago
Kim Alvefur eaac53d041 util.pubsub: Clarify comment about return value 7 years ago
Matthew Wild 44b3954d56 util.pubsub: Allow publishing with a config that should be used as defaults only 7 years ago
Kim Alvefur fb2fdc660b util.pubsub: Expand comment on return type from get_items 7 years ago
Kim Alvefur a60bb9bb13 util.pubsub: Explicitly add all capabilities to the 'outcast' affiliation for completeness 7 years ago
Kim Alvefur df5360e6a3 util.pubsub: Comments describing the return values of methods 7 years ago
Matthew Wild 11c4cee97a util.pubsub: Add 'service' field to all events 7 years ago
Kim Alvefur dedea4fb31 util.pubsub: Remove unused argument 7 years ago
Matthew Wild 99b85eda32 util.pubsub: Fire item-published/<node> to allow for easier handling of per-node items 7 years ago
Matthew Wild 512d844d91 util.pubsub, pubsub.lib: Improve error on attempt to publish invalid item 7 years ago
Matthew Wild 23cfd1b4d0 Pubsub: Add tests for :get_last_item() and fix for non-persistent nodes 7 years ago
Matthew Wild 0a0695d96b util.pubsub: Fix whitespace [luacheck] 7 years ago
Matthew Wild 6e48cd5ece Backed out changeset 27d800ddc3b0 (see below) 7 years ago
Matthew Wild 6ff958994e util.pubsub: get_last_item(): Fail with item-not-found if no item yet published 7 years ago
Matthew Wild 6643aeb7e6 util.pubsub: get_last_item(): Return error if node does not exist 7 years ago
Matthew Wild 716c68f983 pubsub.lib, util.pubsub: Move precondition checks to util.pubsub 7 years ago
Matthew Wild fe83df56a9 util.pubsub: Add comment to clarify return values 7 years ago
Kim Alvefur 98c9778cc7 util.pubsub: Pass "retract" as the type of such broadcasts 7 years ago
Matthew Wild a86ca3faa1 util.pubsub: Allow outcasts to get their subscription status 7 years ago
Matthew Wild 1a41278b49 util.pubsub: For open nodes, default affiliation is "member" 7 years ago
Matthew Wild 7df3613768 mod_pep, util.pubsub: Rename restricted->outcast, none->member and add new 'none' affiliation to better match XEP-0060 7 years ago
Matthew Wild ff222c379d mod_pubsub, mod_pep, util.pubsub: Move capability definitions into util.pubsub to avoid duplication 7 years ago
Kim Alvefur 5a5354e422 util.pubsub: Include node defaults from current service object 7 years ago
Kim Alvefur 4b848862f5 util.pubsub: Re-check all subscriptions on access_model change, unsubscribing those no longer allowed 7 years ago
Matthew Wild 711d3e4bf3 util.pubsub: Add support for publish_model config option 7 years ago
Kim Alvefur 2b8327099a util.pubsub: Apply defaults metatable before config check (thanks pep.) 8 years ago
Matthew Wild 43c1195531 util.pubsub: Add method to retrieve node configuration 8 years ago
Matthew Wild 62fd30552e util.pubsub: Use service.node_defaults in case config.node_defaults was not provided (thanks jonasw) 8 years ago
Matthew Wild 31e2ba5f99 util.pubsub: Tweak default affiliation of access models (fixes failing test) 8 years ago
Kim Alvefur d9abcdd048 util.pubsub: Look for a configured callback for more complicated access models 8 years ago
Kim Alvefur afd936d00c util.pubsub: Add initial support for configurable access models 8 years ago
Matthew Wild 82655ffa2b util.pubsub: Add support for a config validation function 8 years ago