Kim Alvefur
bce7e2dbb9
mod_version: Remove redundant
...
What else would @to be in a iq/host event?
8 years ago
Emmanuel Gil Peyrot
2dc6f58f0d
mod_private, mod_vcard: Use the usual comment on non-get received iqs.
8 years ago
Emmanuel Gil Peyrot
0207fe0e1d
mod_version: Simplify iq handling by hooking on iq-get/ instead of iq/.
8 years ago
Emmanuel Gil Peyrot
b7b67000ca
mod_uptime: Simplify iq handling by hooking on iq-get/ instead of iq/.
8 years ago
Emmanuel Gil Peyrot
db4ad26aed
mod_time: Simplify iq handling by hooking on iq-get/ instead of iq/.
8 years ago
Emmanuel Gil Peyrot
08c4231d4a
mod_lastactivity: Simplify iq handling by hooking on iq-get/ instead of iq/.
8 years ago
Emmanuel Gil Peyrot
00d9da2914
mod_disco: Simplify iq handling by hooking on iq-get/ instead of iq/.
8 years ago
Emmanuel Gil Peyrot
a70ba0645c
mod_adhoc: Simplify iq handling by hooking on iq-set/ instead of iq/.
8 years ago
Kim Alvefur
4202869a5a
MUC: Normalize indentation
8 years ago
Matthew Wild
dc5a16d901
mod_vcard: Remove 0.8 COMPAT code
8 years ago
Kim Alvefur
07d70a4d27
mod_pubsub: Add missing default value for deliver_payloads
8 years ago
Kim Alvefur
74cb841d99
mod_pubsub: Fix boolean value in form
8 years ago
Kim Alvefur
cadba32a24
mod_pubsub: Add a semicolon for consistency
8 years ago
Matthew Wild
512d844d91
util.pubsub, pubsub.lib: Improve error on attempt to publish invalid item
8 years ago
Matthew Wild
23cfd1b4d0
Pubsub: Add tests for :get_last_item() and fix for non-persistent nodes
8 years ago
Matthew Wild
61efe5330e
mod_pep: Simplify code
8 years ago
Matthew Wild
716c68f983
pubsub.lib, util.pubsub: Move precondition checks to util.pubsub
8 years ago
Kim Alvefur
c6b4e592cf
mod_pubsub: Advertise support for subscription-options
...
Initial support was added in d614003a82c1
8 years ago
Kim Alvefur
0eed3a65c4
mod_pubsub: Advertise support for node meta-data
...
Node metadata in disco initially added in b6cb0a8f75b1
8 years ago
Kim Alvefur
3353afd007
mod_pep: Remove feature for persistence already added elsewere
...
This is added in pubsub.lib
8 years ago
Kim Alvefur
440b7aee17
mod_pep: Remove already included access model feature
...
access-* is added in pubsub.lib based on node defaults
8 years ago
Kim Alvefur
4d37f9c8a9
MUC: Direct PubSub queries to occupants to their real bare JID
...
This allows accessing PEP nodes of participants without knowing their
real JIDs.
8 years ago
Matthew Wild
42ca023dec
MUC: Fix traceback when failing to restore a room
...
When a room exists in the DB but cannot be loaded (e.g. due to max_rooms
or a pre-restore handler) restore_room()/get_room_from_jid() returns false.
8 years ago
Kim Alvefur
88962f49f4
MUC: Pass missing argument to log message
8 years ago
Kim Alvefur
b7e3b3d325
mod_pep: Respect setting for whether to include payload in notifications
8 years ago
Kim Alvefur
8121e242b0
mod_pep: Respect settings for which kinds of notifications to send
8 years ago
Kim Alvefur
533cefaaf1
mod_pubsub: Add support for thin notifications (without the full payload)
8 years ago
Kim Alvefur
8d3bfff0c2
mod_pubsub: Only attach publisher on normal "item" broadcasts
...
The 'publisher' is only on <item> in the schema.
8 years ago
Kim Alvefur
b665028854
mod_pubsub: Use the correct form field
8 years ago
Kim Alvefur
2bbecd6d17
mod_pubsub: Specify defaults for notification settings
8 years ago
Kim Alvefur
997025dc39
mod_pubsub: Make notification of item retraction configurable
8 years ago
Kim Alvefur
fe1c3488eb
mod_pubsub: Make notification of node deletion configurable
8 years ago
Kim Alvefur
18f25e3b3f
mod_pubsub: Add support for "quiet nodes" (disabling notifications)
8 years ago
Kim Alvefur
1e2b0d97f0
mod_pubsub: Prepare to support turning notifications off for each kind of broadcast
8 years ago
Kim Alvefur
ed8c19ee7a
mod_pubsub: Add payload type metadata field
8 years ago
Kim Alvefur
98c9778cc7
util.pubsub: Pass "retract" as the type of such broadcasts
...
This moves some XEP-0060 awkwardness out of util.pubsub and into mod_pubsub
A retraction is broadcast in an <items> container, whereas most other
kinds of broadcasts are in a container with a name matching the 'kind'
attribute.
8 years ago
Kim Alvefur
d993a7515e
MUC: Rename variable to make it clearer that it is the room JID and not the MUC host
8 years ago
Jonas Wielicki
1e1a96fa4c
MUC: Ensure that <delay/> elements which match our from are stripped ( fixes #1055 )
8 years ago
Jonas Wielicki
2e7e1a301c
MUC: fix the @from on <delay/> in history replay ( fixes #1054 )
8 years ago
Kim Alvefur
f535c57dd1
MUC: Always send subject message, even if it is empty ( fixes #1053 )
8 years ago
Kim Alvefur
5dee36d838
mod_component, mod_s2s: Iterate over child tags instead of child nodes (can include text) in stream error (same as 176b7f4e4ac9)
9 years ago
Kim Alvefur
12cdea49b3
mod_c2s: Iterate over child tags instead of child nodes in stream error (fixes traceback from #987 )
9 years ago
Kim Alvefur
e8872af8a0
mod_saslauth: Use correct varible name (thanks Roi)
9 years ago
Emmanuel Gil Peyrot
ec9e9df9c7
mod_welcome: Return the pointer to the root of the stanza, fixes a bug similar to #922 .
9 years ago
Emmanuel Gil Peyrot
f3887c158b
mod_disco: Add an account/registered identity on subscribed accounts, fixes #826 .
9 years ago
Emmanuel Gil Peyrot
df7d65413d
mod_watchregistrations: Return the pointer to the root of the stanza, fixes #922 .
9 years ago
Kim Alvefur
02fb1f6f66
mod_bosh: Update session.conn to point to the current connection ( fixes #890 )
9 years ago
Kim Alvefur
8a2a50c07a
mod_disco: Correctly set the 'node' attr ( fixes #449 )
9 years ago
Lennart Sauerbeck
1727434f11
muc: Allow clients to change multiple affiliations or roles at once ( #345 )
...
According to XEP-0045 sections 9.2, 9.5 and 9.8 affiliation lists and role
lists should allow mass-modification. Prosody however would just use the
first entry of the list and ignore the rest. This is fixed by introducing
a `for` loop to `set` stanzas of the respective `muc#admin` namespace.
In order for this loop to work, the error handling was changed a little.
Prosody no longer returns after the first error. Instead, an error reply
is sent for each malformed or otherwise wrong entry, but the loop keeps
going over the other entries. This may lead to multiple error messages
being sent for one client request. A notable exception from this is when
the XML Schema for `muc#admin` requests is violated. In that case the loop
is aborted with an error message to the client.
The change is a bit bigger than that in order to have the loop only for
`set` stanzas without changing the behaviour of the `get` stanzas. This is
now more in line with trunk, where there are separate methods for each
stanza type.
References: #345
9 years ago
Matthew Wild
23fad122e6
mod_websocket: Store the request object on the session for use by other modules
8 years ago