Kim Alvefur
eeb98faa3a
mod_vcard_legacy: Advertise lack of avatar correctly ( fixes #1431 ) (thanks lovetox)
6 years ago
Kim Alvefur
a280be7c08
MUC: Fix delay@from to be room JID ( fixes #1416 )
6 years ago
Kim Alvefur
8b12f4ace1
MUC: Advertise XEP-0410 support
...
Unsure if the feature was in the XEP at the time of 7c1cdf5f9f83
7 years ago
Kim Alvefur
3204f55be1
mod_websocket: Clone stanza before mutating ( fixes #1398 )
...
Checking for `stanza.attr.xmlns == nil` to determine if the stanza
object is an actual stanza (`<message>`, `<presence>` or `<iq>` in the
`jabber:client` or `jabbber:server` namespace) or some other stream
element.
Since this mutation is not reverted, it may leak to other places and
cause them to mistreat stanzas as stream elements. Especially in cases
like MUC where a single stanza is broadcast to many recipients.
7 years ago
Kim Alvefur
1f827c7df8
mod_blocklist: Trigger resend of presence when unblocking a contact ( fixes #1380 )
7 years ago
Kim Alvefur
1cc4ec5d80
mod_pep: Revert 045209b41b3a, caused a regression
...
Adding in all presence based subscriptions in the broadcaster caused
resend_last_item() to unintentionally send out more notifications than
it should have.
7 years ago
Kim Alvefur
cabd5216b4
mod_pep: Handle presence based subscription outside of util.pubsub ( fixes #1372 )
...
Subscriptions were updated for each incoming presence stanza from
contacts. Each subscription change triggered a configuration save, which
would filter out the presence based subscriptions and usually end up
replacing the existing data with identical data. With many subscribed
nodes this adds up to a fair bit of IO bound work that is avoided by
keeping them separate.
7 years ago
Kim Alvefur
5cc63a416a
mod_muc_mam: Cache last date that archive owner has messages to reduce writes ( fixes #1368 )
7 years ago
Kim Alvefur
f11e984c30
mod_mam: Cache last date that archive owner has messages to reduce writes ( fixes #1368 )
7 years ago
Kim Alvefur
3bf9f59c00
mod_announce: Check for admin on current virtualhost instead of global ( fixes #1365 ) (thanks yc)
7 years ago
Kim Alvefur
4512a6266d
mod_c2s: Associate connection with session last ( fixes #1313 )
...
This way, any fatal error in the callback will not leave a
half-established session.
7 years ago
Kim Alvefur
e5423a5f05
mod_storage_sql: Handle SQLite DELETE with LIMIT being optional ( fixes #1359 )
7 years ago
Kim Alvefur
e54ee56ed1
mod_storage_sql: Move code out of if-else chain
7 years ago
Kim Alvefur
86ed7cd44e
mod_tls: Log debug message for each kind of TLS context created
...
Creating TLS contexts triggers a lot of messages from certmanager that
don't really describe their purpose. This is meant to provide hints
about that.
7 years ago
Kim Alvefur
b6cff0ba5e
mod_storage_memory: Implement :user iteration API
7 years ago
Kim Alvefur
4c0bdc6b5c
mod_muc_mam: Copy cleanup mechanism from mod_mam ( fixes #672 )
7 years ago
Kim Alvefur
5c3633477b
mod_mam: Perform message expiry based on building an index by date (backport of 39ee70fbb009 from trunk)
...
For each day, store a set of users that have new messages. To expire
messages, we collect the union of sets of users from dates that fall
outside the cleanup range.
The previous algoritm did not work well with many users, especially with
the default settings.
7 years ago
Kim Alvefur
09a662026a
mod_muc_mam: Add comment about the tricks done with the 'with' field
7 years ago
Kim Alvefur
2c8eecf7c2
mod_muc_mam: Move a comment to the line it describes
7 years ago
Kim Alvefur
dad8bb5fee
mod_muc_mam: Strip the stanza 'to' attribute ( fixes #1259 )
7 years ago
Kim Alvefur
7241f86668
mod_storage_memory: Generate ID using standard util ( fixes #1326 )
...
The previous method relied on tostring(table) returning the pointer address,
which might not be portable.
7 years ago
Kim Alvefur
07541082dc
mod_storage_memory: Replace query function with one based on storage_internal ( fixes #1322 )
...
The :find method in storage_internal works and is easier to read and
understand. Future changes should be simpler to apply to both modules.
7 years ago
Kim Alvefur
4673e4897b
mod_pubsub: Simplify configuration for node data (see #1302 )
7 years ago
Kim Alvefur
e289d31177
mod_pep: Simplify configuration for node data ( fixes #1320 )
7 years ago
Matthew Wild
da3f688d79
MUC: Add error message to error bounces when not joined to room
7 years ago
Kim Alvefur
6d84bd44ba
mod_pubsub: Support requests for multiple items ( fixes #1305 )
7 years ago
Kim Alvefur
d0d8bf9237
mod_vcard_legacy: Handle partial migration
...
Eg in case the user already published an avatar, migrate only the vcard,
and vice versa.
7 years ago
Kim Alvefur
1fe3e2754a
mod_vcard_legacy: Allow disabling vcard conversion
...
Once everyone has been migrated it might be nice to skip these checks
7 years ago
Kim Alvefur
22bdd21fc1
mod_vcard_legacy: Don't overwrite existing PEP data
7 years ago
Kim Alvefur
55490159fd
mod_vcard_legacy: Add some missing semicolons
7 years ago
Kim Alvefur
f7c48ad3bc
mod_vcard_legacy: Upgrade vcard-temp on login ( fixes #1289 )
7 years ago
Kim Alvefur
cc4a160cdb
mod_vcard_legacy: Adapt node defaults to number of avatars
7 years ago
Kim Alvefur
47887761c6
mod_vcard_legacy: Factor out conversion from vcard-temp to 4
7 years ago
Kim Alvefur
f8d61d21e5
mod_websocket: Log an error if cross_domain_websocket = true is set in a VirtualHost section
7 years ago
Kim Alvefur
757051d913
mod_websocket: Include the value of cross_domain_websocket in debug message
7 years ago
Kim Alvefur
ad15946ae3
mod_motd: Remove unused variable [luacheck]
7 years ago
Kim Alvefur
30ab1bca86
mod_motd: Remove redundant conditions
...
The stanza should always be like this in the presence/initial event
7 years ago
Kim Alvefur
b2d3ebb76d
mod_presence: Revert empty 'to' attribute of presence before presence/initial event ( fixes #1296 )
7 years ago
Kim Alvefur
5cd064035a
mod_bosh: Handle missing wait attribute ( fixes #1288 )
...
250855633092 did not fix this completely.
7 years ago
Kim Alvefur
24c44a4566
mod_csi_simple: Consider messages encrypted payload as important (fixes part of #1250 )
7 years ago
Kim Alvefur
e03098631f
mod_csi_simple: Consider messages with subject (eg MUC joins) (fixes part of #1250 )
7 years ago
Kim Alvefur
05b481ec89
mod_csi_simple: Unpack Carbons-forwarded messages (fixes part of #1250 )
7 years ago
Kim Alvefur
9251fa5500
mod_csi_simple: Consider messages forwarded from another of the users clients as important (fixes part of #1250 )
7 years ago
Kim Alvefur
38c98346b1
mod_csi_simple: Tweak check for <body>
...
There were code that checked the body for mentions but isn't included.
7 years ago
Kim Alvefur
1e9a016034
mod_posix: Don't reload logging twice
...
See 18eca6afb367
7 years ago
Emmanuel Gil Peyrot
6282f9029c
mod_mam: Only accept valid JIDs in <always/> and <never/> prefs. ( fixes #1275 )
7 years ago
Kim Alvefur
85a028c727
MUC: Allow changing data attached to an only owner ( fixes #1273 )
...
This previously prevented a single owner from setting their own nickname
via admin query.
The form method uses `true` as actor so it bypasses this check.
7 years ago
Matthew Wild
f281528c39
MUC: Adjust priorities of muc-get-default-role handlers ( fixes #1272 )
7 years ago
Kim Alvefur
b31939c492
MUC: Fix traceback when requesting voice ( fixes #1269 ) (thanks jonas’)
...
Introduced by change from add_child to add_direct_child in ce57c69a20e2
Why does add_direct_child not return self like everything else?
7 years ago
Kim Alvefur
41656354bf
mod_vcard_legacy: Limit injection of XEP-0153 to normal presence ( fixes #1252 )
7 years ago