Matthew Wild
8ea77fc0ec
util.promise: Remove the non-standard ability to pass a promise to reject()
8 years ago
Matthew Wild
37bedc7314
util.promise: Add tests ensuring returning a promise resolves the current promise with that promise
8 years ago
Kim Alvefur
fb6abdb161
moduleapi: Prevent loading disabled module as dependency of enabled one
...
Explicitly disabled module should stay disabled.
8 years ago
Kim Alvefur
f179d7fe1c
mod_mam: Remove embedded fallback archive driver ( fixes #972 )
...
It was equivalent to mod_storage_memory, which is included as a separate module now.
8 years ago
Kim Alvefur
e2910e8847
mod_mam: Upgrade case of invalid archive store driver to hard error
8 years ago
Kim Alvefur
182e80684f
mod_mam: Ignore case of null storage driver
8 years ago
Kim Alvefur
38758ef986
mod_muc_mam: Fix missing form container element
8 years ago
Matthew Wild
201dbb74cc
util.promise tests: Fix declared but unused variables
8 years ago
Matthew Wild
e6ff6e333c
util.promise: Fix missing parameters
8 years ago
Matthew Wild
b74a643e34
util.promise: Ensure chained promises always receive a value/rejection even if an intermediate promise has no handlers
8 years ago
Matthew Wild
c7d9ee0bb8
util.promise: Export is_promise()
8 years ago
Matthew Wild
9c2ebc29f6
MUC: Remove debug log
8 years ago
Matthew Wild
5d8613b3c1
util.promise: Remove debug print and assert
8 years ago
Kim Alvefur
e12412bc08
Merge 0.10->trunk
8 years ago
Kim Alvefur
2dd5ee9357
prosodyctl: Change ownership of certs to same as the cert base dir when running from a source checkout
8 years ago
Kim Alvefur
d3d71d91bb
prosodyctl: Allow cert dir to not be owned by root ( fixes #1075 )
8 years ago
Kim Alvefur
3d06d7c309
mod_pep: Add automatic subscriptions on node creation ( fixes #1222 )
...
Replaces automatic node creation on subscription, since this casues
problems when trying to keep nodes private or other specific settings.
8 years ago
Kim Alvefur
fd0c8253c6
mod_pep: Add PEP service owners username in configuration to ease identification
8 years ago
Kim Alvefur
3ad1358ad5
mod_pep: Remove use of recipients table for signaling pending disco#items
...
It stored the caps hash as a string in the recipients table while
waiting for a disco#info response, then replaces it with the set of
nodes that had +notify.
This mixing of types is bad, so here it gets removed.
This can be improved once an IQ tracking API (#714 ) is added.
8 years ago
Kim Alvefur
eaac53d041
util.pubsub: Clarify comment about return value
8 years ago
Kim Alvefur
831dceeba3
mod_pep: Add all pubsub service objects to item API in order to behave across reloads
8 years ago
Kim Alvefur
c5d487e42d
mod_storage_sql: Handle Lua 5.3 move of unpack function
8 years ago
Kim Alvefur
687384a94a
storagemanager: Fix tests on Lua 5.3
...
_G.unpack moved to table.unpack
8 years ago
Kim Alvefur
e8bab7fadf
mod_storage_memory: Adapt archive deletion code from mod_storage_internal
8 years ago
Kim Alvefur
534dae7164
mod_storage_memory: Fix overwriting old keys
...
Test fixed is: spec/core_storagemanager_spec.lua:309: Expected objects to be equal.
8 years ago
Kim Alvefur
03151ec6d5
mod_storage_memory: Remove compat for very early argument order
8 years ago
Matthew Wild
2029dbf496
MUC: Add function to retrieve affiliation data for a given JID
8 years ago
Matthew Wild
58d6d5c41d
MUC: Include affiliation data when iterating over affiliations with a room
8 years ago
Matthew Wild
9825eee8c1
MUC: Use the bare JID when performing a lookup for COMPAT with clients that don't set it ( fixes #1224 )
...
The full JID is never meant to be the target of affiliation changes.
8 years ago
Matthew Wild
e12a6cdb99
util.array: Add __div for parity with util.set
8 years ago
Matthew Wild
fbb11b868f
util.array: Break long line
8 years ago
Kim Alvefur
49c6847837
stanza_router: Remove deprecation warning for core routing functions from global scope (deprecated in 0.9)
8 years ago
Kim Alvefur
88cbaf2067
mod_compression: Remove tombstone (deprecated in 0.10)
8 years ago
Kim Alvefur
e04f6c2900
mod_privacy: Remove tombstone (deprecated in 0.10)
8 years ago
Kim Alvefur
023e5839c2
tests: Add some comments to xep54 test
8 years ago
Kim Alvefur
006a19da77
tests: Remove initial read since XEP is unclear (see #1104 )
...
If the store is empty then either this empty vCard element or an
item-not-found error is acceptable.
8 years ago
Kim Alvefur
bf624bbe1c
tests: Set a proper title for vCard test
8 years ago
Kim Alvefur
eff1cf4481
tests: Add simple test case for XEP-0054
8 years ago
Kim Alvefur
376f1e9b65
mod_vcard_legacy: Pass node defaults to publish instead of create
...
The create calls were introduced in 62fa766d8f3 but work on this started
a while before 038446c50630 allowed passing the _defaults_only flag to
publish.
8 years ago
Kim Alvefur
839e3f37db
CHANGES: Mention server_epoll
8 years ago
Kim Alvefur
c98a0e56bf
mod_vcard_legacy: Create nodes with open access ( fixes #1221 )
...
Less drastic change from mod_vcard where everything is always public.
This allows users to configure nodes without needing to for the old
behaviour.
Thanks to 038446c50630 users may still override this.
Due to #1222 this may still not apply if the node has already been
created by an automatic subscription
8 years ago
Matthew Wild
05b4064188
util.promise: Add promise.try()
8 years ago
Matthew Wild
44b3954d56
util.pubsub: Allow publishing with a config that should be used as defaults only
8 years ago
Kim Alvefur
dd2f749996
util.promise: Add a string representation
8 years ago
Matthew Wild
681b25e427
util.promise: Add promise:finally()
8 years ago
Matthew Wild
894fe1b808
util.promise: Some code relocation
8 years ago
Matthew Wild
7bcf751702
util.promise: Also support automatic resolution by returning a promise from an on_reject handler
...
Originally unimplemented because it wasn't clear to me what the correct behaviour was, but the A+
spec is clear that both onFulfilled and onRejected may return a promise.
8 years ago
Matthew Wild
0d3fa64b96
util.promise: Add additional test for promise.reject()
8 years ago
Matthew Wild
ef7d6ba99e
util.promise: Fix promise.reject() to return a rejected promise, and fix buggy test for it
8 years ago
Kim Alvefur
2de254acf7
core.moduleapi: Remove redundant condition
8 years ago