Kim Alvefur
4d9916d1e5
mod_muc_mam: Improve wording of enable setting
...
Suggested by jstein in the chat
This option label is used by XMPP clients to explain what the option does.
a) The user should know where the data is archived.
b) The user needs a statement that can be enabled/disabled by the variable. A question would have the wrong logic here.
2 years ago
Kim Alvefur
81fd03356f
mod_muc_mam: Copy "include total" behavior from mod_mam
...
Not sure why this was missing from MUC MAM, it already had some of the
code for dealing with it.
3 years ago
Kim Alvefur
d0321442c9
mod_muc_mam: Add mam#extended form fields #1796 (Thanks Rain)
...
Oversight in cabb022f31c0
3 years ago
Kim Alvefur
4830568435
mod_mam,mod_muc_mam: Minimize differences (reorder, copy some comments)
...
Should have no functional difference, but makes it easier keeping
mod_mam and mod_muc_mam in sync.
3 years ago
Kim Alvefur
8a2c386e95
mod_muc_mam: Use period option method
2 years ago
Kim Alvefur
71ad48095d
plugins: Use integer config API with interval specification where sensible
...
Many of these fall into a few categories:
- util.cache size, must be >= 1
- byte or item counts that logically can't be negative
- port numbers that should be in 1..0xffff
2 years ago
Kim Alvefur
98922d54b1
plugins: Prefix module imports with prosody namespace
3 years ago
Kim Alvefur
27d63ff731
mod_muc_mam: Use higher precision timestamps
...
See also 781772c8b6d9
3 years ago
Kim Alvefur
28f0267645
mod_muc_mam: Don't strip MUC <x> tags, fix #1567
6 years ago
Kim Alvefur
031e272a9c
mod_muc_mam: Remove spoofed archive IDs before archiving, fix #1552
...
The stanza-id added during archiving looks exactly like what should be
stripped, so the stripping must happen before archiving.
Getting priorities right is hard!
Also no test coverage yet.
6 years ago
Kim Alvefur
ed4cc77c76
mod_muc_mam: Fix missing advertising of XEP-0359, fixes #1547
6 years ago
Kim Alvefur
e0a9efae01
mod_muc_mam: Fix stanza id filter event name, fixes #1546
...
Nice typo
6 years ago
Kim Alvefur
e3911ce5da
mod_mam,mod_muc_mam: Allow other work to be performed during archive cleanup ( fixes #1504 )
...
This lets Prosody handle socket related work between each step in the
cleanup in order to prevent the server from being completely blocked
during this.
An async storage backend would not need this but those are currently
rare.
6 years ago
Kim Alvefur
2de7db5f8b
mod_muc_mam: Fix traceback saving message from non-occupant ( fixes #1497 )
...
Caused by a plugin sending a message from the room itself.
6 years ago
Kim Alvefur
16c2ef22e0
mod_muc_mam: Switch to mod_cron for message expiry
4 years ago
Kim Alvefur
59258d47bd
mod_mam,mod_muc_mam: Simplify deletion when multi-user-deletion is supported
...
More code, but less of it needs to run and no extra tracking is needed.
4 years ago
Kim Alvefur
533ab7a4ce
mod_muc_mam: Use util.dataforms timestamp validation
4 years ago
Kim Alvefur
24dc89e125
mod_muc_mam: Fix reference to "user" in debug message copied from mod_mam
4 years ago
Kim Alvefur
f958af4a11
mod_muc_mam: Merge main and RSM-specific log message into a single one
4 years ago
Kim Alvefur
0a8a04dcb1
mod_muc_mam: Fix copypaste mistake in debug logging
...
This line was copied from mod_mam, where `origin.username` made sense,
less so here.
4 years ago
Holger Weiss
6742da8c10
mod_muc_mam: Omit queryid attribute from <fin/>
...
Since version 0.4 of XEP-0313, the <fin/> element is sent with the IQ
result and no longer has a queryid attribute.
4 years ago
Kim Alvefur
5e6b920ecf
mod_muc_mam: Copy extended MAM support from mod_mam
...
mod_mam and mod_muc_mam are just different enough that having them be
the same module gets complicated, but close enough to have overlapping
code.
5 years ago
Kim Alvefur
d146cc6f58
MAM: Remove 1% of contents when reaching limits, fix #1545
...
With mod\_storage\_internal this counts out to 100 messages out of 10 000,
meaning should not hit the quota limit immediately until that many
messages have been added again.
6 years ago
Kim Alvefur
71138a9fd9
mod_muc_mam: Measure how long a cleanup run takes (like mod_mam)
6 years ago
Kim Alvefur
a4e705c122
mod_muc_mam: Fix rebase mistake [luacheck]
...
The 'err' was there in trunk
6 years ago
Kim Alvefur
575cd4c57d
mod_muc_mam: Schedule cleanup again on failure
6 years ago
Kim Alvefur
9482392517
mod_muc_mam: Log error when unable to delete old messages ( fix #1481 ) [luacheck]
6 years ago
Kim Alvefur
b10527f724
mod_muc_mam: Log error when unable to store stanza ( fix #1480 ) [luacheck]
6 years ago
Kim Alvefur
8537138d41
mod_muc_mam: Remove unused variable [luacheck]
6 years ago
Kim Alvefur
5b06f8946f
mod_muc_mam: Handle form identification error (e.g. not a form at all)
6 years ago
Kim Alvefur
0455a31dbc
mod_muc_mam: Copy debug log improvements from mod_mam
6 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
4c0bdc6b5c
mod_muc_mam: Copy cleanup mechanism from mod_mam ( fixes #672 )
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
d88db76a06
mod_muc_mam: Propagate item-not-found to client ( fixes #1325 )
7 years ago
Kim Alvefur
e6706dee7f
mod_muc_mam: Handle archive quotas
...
Same as in mod_mam
7 years ago
Kim Alvefur
5976d3fc66
mod_muc_mam: Conditionally advertise MAM feature on rooms ( fixes #1407 )
6 years ago
Kim Alvefur
40b1e3e0ed
plugins: Remove tostring call from logging
...
Taken care of by loggingmanager now
Mass-rewrite using lua pattern like `tostring%b()`
7 years ago
Kim Alvefur
38758ef986
mod_muc_mam: Fix missing form container element
7 years ago
Kim Alvefur
b15877ac0f
mod_muc_mam: Disable presence logging by default
8 years ago
Kim Alvefur
6ec6095d77
mod_muc_mam: Set status code 170/171 on archiving configuration change
8 years ago
Kim Alvefur
cbbbb8f776
mod_muc_mam: Have stanza-id filtering over all groupchat messages, not just ones considered for history
8 years ago
Kim Alvefur
d37e36dce4
mod_muc_mam: Skip fetching history if built-in recent history is enough
8 years ago
Kim Alvefur
ee8969e246
mod_muc_mam: Skip fetching history if no history was requested
8 years ago
Kim Alvefur
9e2ef3905c
mod_muc_mam: Tweak calculation of max history to retrieve
8 years ago
Kim Alvefur
c44df11dd4
mod_muc_mam: Save the MUC <x> on recorded join stanzas
8 years ago
Kim Alvefur
28cfb73f59
mod_muc_mam: Let muc/history.lib decide which messages to store
8 years ago
Kim Alvefur
8cb9cbfc3b
mod_muc_mam: Remove 0.10 compat code
8 years ago