Kim Alvefur
d64c3ffda4
MUC: Advertise language field as such via XEP-0122
...
This lets clients know that the field is a language field and should be
in RFC 5646 format.
Field validation code in util.dataforms left for future commit.
7 years ago
Kim Alvefur
88345b0172
mod_pubsub: Expose pubsub#access_model and pubsub#publish_model ( fixes #1387 )
7 years ago
Kim Alvefur
47b408b4bd
mod_blocklist: Add comment to clarify some logic
7 years ago
Kim Alvefur
c6ad506b85
mod_blocklist: Trigger resend of presence when unblocking a contact ( fixes #1380 )
7 years ago
Kim Alvefur
6c5d0e50e7
MUC: Reflow event tables to improve readability
...
Also makes it easier to read diffs of added fields.
7 years ago
Kim Alvefur
027554ebcc
mod_pep: Log node name instead of payload
...
Having the node logged is more useful and less problematic for privacy
7 years ago
Kim Alvefur
a4764762b3
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
Michel Le Bihan
9a5a3fd0f1
mod_admin_telnet: Collect array from Bosh connections when appending to connection list
...
Fixes #1356
7 years ago
Kim Alvefur
3b49129ad4
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
411d4c02a1
mod_storage_sql: Ignore shadowed error variable [luacheck]
7 years ago
Kim Alvefur
a52c045f4a
mod_storage_sql: Fix to use correct arguments to archive id lookup
7 years ago
Kim Alvefur
8799bf12c7
mod_storage_sql: Correctly return item-not-found error
...
`return ok, err` comes out as `transaction_ok, ok, err`
7 years ago
Kim Alvefur
e96902f6b4
mod_muc_mam: Cache last date that archive owner has messages to reduce writes ( fixes #1368 )
7 years ago
Kim Alvefur
837334916e
mod_mam: Cache last date that archive owner has messages to reduce writes ( fixes #1368 )
7 years ago
Kim Alvefur
05f81e425c
mod_announce: Check for admin on current virtualhost instead of global ( fixes #1365 ) (thanks yc)
7 years ago
Kim Alvefur
2dbd1528bb
mod_csi_simple: Disable optimizations on disconnect ( fixes #1358 )
...
The connection becomes invalid here, regardless of 3rd party modules
that might keep the session alive.
7 years ago
Kim Alvefur
c85ae3be78
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
9838f3732d
mod_storage_sql: Handle SQLite DELETE with LIMIT being optional ( fixes #1359 )
7 years ago
Kim Alvefur
1045642fa4
mod_storage_sql: Move code out of if-else chain
7 years ago
Kim Alvefur
fa0d394f9b
mod_storage_internal: Return appropriate error even with empty archive
7 years ago
Kim Alvefur
faf1282ee2
mod_storage_memory: Return correct error even if no archive data available
7 years ago
Kim Alvefur
43f98c242d
mod_muc_mam: Propagate item-not-found to client ( fixes #1325 )
7 years ago
Kim Alvefur
ffd7ca3f8d
mod_mam: Propagate item-not-found to client ( fixes #1325 )
7 years ago
Kim Alvefur
4d9fdf2b0f
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
7e32666c2b
mod_storage_sql: Look up archive IDs in separate queries ( fixes #1325 )
...
This is probably not good for performance.
7 years ago
Kim Alvefur
59b4972c34
mod_storage_memory: Return error if 'before' or 'after' are not found (partial fix for #1325 )
7 years ago
Kim Alvefur
cf5c64cd69
mod_storage_internal: Return error if 'before' or 'after' are not found (partial fix for #1325 )
7 years ago
Kim Alvefur
696da1f571
mod_storage_sql: Add support for iterating over users in archive stores
7 years ago
Kim Alvefur
017e7f7438
mod_storage_internal: Add support for iterating over users in archive stores
...
May help with writing a better migrator
7 years ago
Kim Alvefur
c39b08a25d
mod_muc_mam: Handle archive quotas
...
Same as in mod_mam
7 years ago
Kim Alvefur
200664ab8a
mod_storage_internal,memory: Only return total count if requested
7 years ago
Kim Alvefur
690c6a4eb2
Fix various spelling mistakes [codespell]
7 years ago
Arc Riley
5bf3c84d07
mod_bosh: Added metrics for active/inactive sessions, new BOSH sessions, BOSH errors, and timeouts (finishes #998 )
7 years ago
Arc Riley
da0d3e296c
mod_admin_telnet: include BOSH connections in c2s:count ( #998 )
7 years ago
Arc Riley
cdbb6348f6
mod_admin_telnet: added "(bosh)" and "(websocket)" connection flags ( #998 )
7 years ago
Arc Riley
30ef8e7ac4
mod_admin_telnet: include BOSH connections in c2s session commands ( #998 )
7 years ago
Kim Alvefur
41c9fe2b76
mod_mimicking: Improve error handling
7 years ago
Kim Alvefur
21d4a58469
mod_mimicking: Use more intuitive term "mimicry index" for skeletons
...
Fits better with the module name too.
7 years ago
Kim Alvefur
54d0329e4c
mod_mimicking: Update command to work with current code
7 years ago
Kim Alvefur
00887cf07d
mod_mimicking: Use new storage API
7 years ago
Kim Alvefur
1054f2438b
mod_mimicking: Hook the correct event names
7 years ago
Kim Alvefur
701fd99947
mod_mimicking: Import skeleton() from current location
7 years ago
Kim Alvefur
d0075a2784
mod_storage_memory: Implement :user iteration API
7 years ago
Kim Alvefur
c03d54fd93
mod_muc_mam: Copy cleanup mechanism from mod_mam ( fixes #672 )
7 years ago
Kim Alvefur
7989db63ae
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
01f4b12e15
mod_muc_mam: Add comment about the tricks done with the 'with' field
7 years ago
Kim Alvefur
e209e82f10
mod_muc_mam: Move a comment to the line it describes
7 years ago
Kim Alvefur
6a3cb77dac
mod_muc_mam: Strip the stanza 'to' attribute ( fixes #1259 )
7 years ago
Kim Alvefur
258089ed26
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
c270d949f2
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