Kim Alvefur
7b4c3318d8
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
da79e58a6c
mod_muc_mam: Don't strip MUC <x> tags, fix #1567
6 years ago
Kim Alvefur
0c8c16c487
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
3a0744ac82
mod_muc_mam: Fix missing advertising of XEP-0359, fixes #1547
6 years ago
Kim Alvefur
b4c415ceed
mod_muc_mam: Fix stanza id filter event name, fixes #1546
...
Nice typo
6 years ago
Kim Alvefur
dab7182de9
mod_muc_mam: Don't strip MUC <x> tags, fix #1567
6 years ago
Kim Alvefur
396ae37894
mod_muc_mam: Don't strip MUC <x> tags, fix #1567
6 years ago
Kim Alvefur
9a35d506e2
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
3e4cbaf0f9
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
6860e08ad6
mod_muc_mam: Fix missing advertising of XEP-0359, fixes #1547
6 years ago
Kim Alvefur
b199403ab5
mod_muc_mam: Fix missing advertising of XEP-0359, fixes #1547
6 years ago
Kim Alvefur
6b5447031c
mod_muc_mam: Fix stanza id filter event name, fixes #1546
...
Nice typo
6 years ago
Kim Alvefur
ee464bb36d
mod_muc_mam: Fix stanza id filter event name, fixes #1546
...
Nice typo
6 years ago
Kim Alvefur
01650eaf06
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
9a5f1c4402
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
48dcba89d7
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
328fba00fd
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
02b23bdc66
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
ea1ca4fd42
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
ebf52208e4
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
f17b76ce48
mod_muc_mam: Measure how long a cleanup run takes (like mod_mam)
6 years ago
Kim Alvefur
d04e48f29f
mod_muc_mam: Fix rebase mistake [luacheck]
...
The 'err' was there in trunk
6 years ago
Kim Alvefur
b22125f064
mod_muc_mam: Schedule cleanup again on failure
6 years ago
Kim Alvefur
26e530afc0
mod_muc_mam: Log error when unable to delete old messages ( fix #1481 ) [luacheck]
6 years ago
Kim Alvefur
791fa6db10
mod_muc_mam: Log error when unable to store stanza ( fix #1480 ) [luacheck]
6 years ago
Kim Alvefur
cf87960bda
mod_muc_mam: Remove unused variable [luacheck]
6 years ago
Kim Alvefur
f35ffff6ae
mod_muc_mam: Handle form identification error (e.g. not a form at all)
6 years ago
Kim Alvefur
90ac1b2711
mod_muc_mam: Copy debug log improvements from mod_mam
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
c03d54fd93
mod_muc_mam: Copy cleanup mechanism from mod_mam ( fixes #672 )
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
43f98c242d
mod_muc_mam: Propagate item-not-found to client ( fixes #1325 )
7 years ago
Kim Alvefur
c39b08a25d
mod_muc_mam: Handle archive quotas
...
Same as in mod_mam
7 years ago
Kim Alvefur
271036a6a8
mod_muc_mam: Fix rebase mistake [luacheck]
...
The 'err' was there in trunk
6 years ago
Kim Alvefur
ef1a12de07
mod_muc_mam: Schedule cleanup again on failure
6 years ago
Kim Alvefur
20d4a9b614
mod_muc_mam: Log error when unable to delete old messages ( fix #1481 ) [luacheck]
6 years ago
Kim Alvefur
4e230b95ef
mod_muc_mam: Log error when unable to store stanza ( fix #1480 ) [luacheck]
6 years ago
Kim Alvefur
41c625f6a9
mod_muc_mam: Cache last date that archive owner has messages to reduce writes ( fixes #1368 )
7 years ago
Kim Alvefur
3d8f6c593b
mod_muc_mam: Conditionally advertise MAM feature on rooms ( fixes #1407 )
7 years ago
Kim Alvefur
2b8caf8dac
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
7c88c94920
mod_muc_mam: Fix missing form container element
8 years ago
Kim Alvefur
c519caac6e
mod_muc_mam: Disable presence logging by default
8 years ago
Kim Alvefur
e138e9ce1c
mod_muc_mam: Set status code 170/171 on archiving configuration change
8 years ago
Kim Alvefur
570de19e99
mod_muc_mam: Have stanza-id filtering over all groupchat messages, not just ones considered for history
8 years ago
Kim Alvefur
88562eeb5d
mod_muc_mam: Skip fetching history if built-in recent history is enough
8 years ago
Kim Alvefur
fec7a1c262
mod_muc_mam: Skip fetching history if no history was requested
8 years ago
Kim Alvefur
de89c2de11
mod_muc_mam: Tweak calculation of max history to retrieve
8 years ago
Kim Alvefur
f1254ad149
mod_muc_mam: Save the MUC <x> on recorded join stanzas
8 years ago