Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mod_mam: Use for loop in metadata query | Kim Alvefur | 2023-11-26 | 1 | -4/+2 |
| | | | | | | Some storage drivers will perform cleanup after the last iteration, but if only one step is taken this might be delayed until the garbage collector gets to it. | ||||
* | plugins: Handle how get_option_period returns "never" | Kim Alvefur | 2023-07-21 | 1 | -2/+2 |
| | |||||
* | plugins: Use integer config API with interval specification where sensible | Kim Alvefur | 2023-07-17 | 1 | -3/+3 |
| | | | | | | | 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 | ||||
* | plugins: Switch to :get_option_period() for time range options | Kim Alvefur | 2023-07-16 | 1 | -9/+1 |
| | | | | Improves readability ("1 day" vs 86400) and centralizes validation. | ||||
* | renamening: Fix newly added imports to use the new namespace | Kim Alvefur | 2023-06-18 | 1 | -1/+1 |
| | |||||
* | mod_mam: port to use util.human.io.parse_duration | Jonas Schäfer | 2022-04-28 | 1 | -8/+6 |
| | | | | | | Updated by Zash, the original patch by Jonas had put the duration parsing function in util.datetime but MattJ later did the same thing but differently in f4d7fe919969 | ||||
* | plugins: Prefix module imports with prosody namespace | Kim Alvefur | 2023-03-24 | 1 | -14/+14 |
| | |||||
* | Merge 0.12->trunk | Kim Alvefur | 2023-01-21 | 1 | -5/+5 |
|\ | |||||
| * | mod_mam,mod_muc_mam: Minimize differences (reorder, copy some comments) | Kim Alvefur | 2023-01-21 | 1 | -5/+5 |
| | | | | | | | | | | Should have no functional difference, but makes it easier keeping mod_mam and mod_muc_mam in sync. | ||||
* | | mod_mam: Store archives with sub-second precision timestamps | Kim Alvefur | 2022-08-14 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | Changes sub-second part of example timestamp to .5 in order to avoid floating point issues. Some clients use timestamps when ordering messages which can lead to messages having the same timestamp ending up in the wrong order. It would be better to preserve the order messages are sent in, which is the order they were stored in. | ||||
* | | mod_mam: Silence luacheck (yay warnings in CI but not locally) | Kim Alvefur | 2022-06-14 | 1 | -1/+1 |
| | | |||||
* | | mod_mam: Clarify comment (thanks chili-b) | Kim Alvefur | 2022-06-14 | 1 | -2/+6 |
|/ | | | | | This was slightly inaccurate since 6e1af07921d1 because the conditions are more complicated now. | ||||
* | mod_mam: Fix a comment | Kim Alvefur | 2021-12-11 | 1 | -1/+1 |
| | | | | This is the noop that gets replaced later | ||||
* | mod_mam: Allow plugging into archive decision | Kim Alvefur | 2021-12-10 | 1 | -4/+13 |
| | | | | Similar procedure as mod_csi_simple | ||||
* | plugins: Update for namespace bump in XEP-0353 v0.4.0 | Kim Alvefur | 2022-01-11 | 1 | -1/+1 |
| | |||||
* | mod_mam: Avoid storing bounces for messages from the bare account (thanks Ge0rG) | Kim Alvefur | 2021-12-10 | 1 | -2/+12 |
| | | | | | | This should rule out error replies to PEP notifications, which come from the account bare JID, and would be reflected back to it if they can't be delivered for some reason, e.g. s2s problems. | ||||
* | mod_mam: Switch to new cron API | Kim Alvefur | 2021-11-21 | 1 | -6/+1 |
| | |||||
* | mod_mam,mod_muc_mam: Simplify deletion when multi-user-deletion is supported | Kim Alvefur | 2021-11-30 | 1 | -7/+28 |
| | | | | More code, but less of it needs to run and no extra tracking is needed. | ||||
* | mod_mam: Use util.dataforms timestamp validation | Kim Alvefur | 2021-10-26 | 1 | -14/+5 |
| | |||||
* | mod_mam: Merge main and RSM-specific log message here too | Kim Alvefur | 2021-09-23 | 1 | -10/+10 |
| | |||||
* | mod_mam: Reduce line count using new util.stanza attr method | Kim Alvefur | 2021-09-12 | 1 | -4/+2 |
| | | | | | Since this stanza-id was generated elsewhere in mod_mam, there should be no need for normalization. | ||||
* | mod_mam: Suppress offline message broadcast for MAM clients | Kim Alvefur | 2021-08-31 | 1 | -0/+7 |
| | | | | | | | | MattJ on 09:34:24 > Zash: I think as a first step, offline messages should not be sent to > clients that request MAM https://chat.modernxmpp.org/log/modernxmpp/2021-08-31#2021-08-31-8518a542bd283686 | ||||
* | mod_mam: Only check for locally generated stanza-ids | Kim Alvefur | 2021-08-31 | 1 | -2/+5 |
| | | | | | | Otherwise a message archived by a remote server would be incorrectly silently discarded. This should be safe from spoofing thanks to strip_stanza_id earlier in the event chain. | ||||
* | mod_mam: Explain behavior with absent mod_offline in a comment | Kim Alvefur | 2021-08-31 | 1 | -0/+4 |
| | |||||
* | mod_mam: "Handle" messages that have been archived in the absense of mod_offline | Kim Alvefur | 2020-06-25 | 1 | -0/+7 |
| | |||||
* | Fix various spelling errors (thanks codespell) | Kim Alvefur | 2021-07-27 | 1 | -1/+1 |
| | | | | | Also special thanks to timeless, for wordlessly reminding me to check for typos. | ||||
* | mod_mam: Remove obsolete 'queryid' attribute from iq-result (thanks paul) | Kim Alvefur | 2021-01-29 | 1 | -1/+1 |
| | | | | Mentioned in xmpp:xsf@muc.xmpp.org?join | ||||
* | mod_mam: Advertise extended MAM when archive storage is capable | Kim Alvefur | 2021-01-12 | 1 | -2/+1 |
| | |||||
* | mod_mam: Allow querying by set of IDs | Kim Alvefur | 2021-01-12 | 1 | -2/+8 |
| | |||||
* | mod_mam: Add support for before-id and after-id fields | Kim Alvefur | 2021-01-09 | 1 | -4/+9 |
| | |||||
* | mod_mam: Implement extended MAM metadata query | Kim Alvefur | 2020-11-30 | 1 | -1/+35 |
| | |||||
* | mod_mam: Add support for page flipping | Kim Alvefur | 2020-11-30 | 1 | -3/+8 |
| | | | | | This was easy. Needs tests tho, 100% chance of the logic being backwards. | ||||
* | mod_mam: Advertise extended MAM 0.7.x behind a feature flag | Kim Alvefur | 2020-11-30 | 1 | -1/+12 |
| | | | | | | | In order to ease testing until the extended feautres are all implemented. Also TODOs for all the sub-features. | ||||
* | mod_csi_simple,mod_carbons,mod_mam: Update comment about XEP-0353 | Kim Alvefur | 2021-01-08 | 1 | -1/+1 |
| | | | | It went back to Deferred | ||||
* | mod_mam: Archive XEP-0353: Jingle Message Initiation | Kim Alvefur | 2020-05-09 | 1 | -0/+4 |
| | |||||
* | MAM: Remove 1% of contents when reaching limits, fix #1545 | Kim Alvefur | 2020-05-05 | 1 | -1/+3 |
| | | | | | | 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. | ||||
* | mod_mam: Store only incoming errors | Kim Alvefur | 2020-04-26 | 1 | -3/+4 |
| | | | | | Unclear if clients normally ever send error messages, but there may be locally generated bounces sent on behalf of local sessions. | ||||
* | mod_mam: Remove unused variables [luacheck] | Kim Alvefur | 2020-04-23 | 1 | -4/+0 |
| | | | | Logic using full vs bare JID addressing may return in the future. | ||||
* | mod_mam: Don't store any groupchat messages | Kim Alvefur | 2020-04-23 | 1 | -1/+3 |
| | | | | | | | | The intent was to not store MUC groupchat messages, which are sent from the MUC to local full JIDs, while allowing for potential future account based group chat. However, since this function handles messages in both directions and outgoing MUC messages are sent to the bare room JID, those were stored. | ||||
* | mod_mam: Make note of Experimental (or Deferred) XEPs | Kim Alvefur | 2020-04-22 | 1 | -0/+3 |
| | | | | | Since these XEPs are subject to change we may need come back and double check these in the future. | ||||
* | mod_mam: Save delivery failures (thanks Ge0rG) | Kim Alvefur | 2020-04-22 | 1 | -0/+3 |
| | | | | | Makes it possible to learn of delivery failure even if it came bouncing back while you were offline. | ||||
* | mod_mam: Keep chat markers (thanks Ge0rG) | Kim Alvefur | 2020-04-22 | 1 | -0/+3 |
| | |||||
* | mod_mam: Respect no-store hint (thanks Ge0rG) | Kim Alvefur | 2020-04-22 | 1 | -1/+2 |
| | | | | | no-store is used in an example in XEP-0313, so obviously this is the preferred hint | ||||
* | mod_mam: Fix typo in comment | Kim Alvefur | 2020-04-21 | 1 | -1/+1 |
| | | | | If it is with a body then it execution does not get this far | ||||
* | mod_mam: Prefer not archiving if no interesting payloads are found | Kim Alvefur | 2020-04-21 | 1 | -1/+3 |
| | |||||
* | mod_mam: Check sender of error instead of receiver | Kim Alvefur | 2020-04-21 | 1 | -0/+3 |
| | | | | | | The intent is to capture errors to stanzas sent by the local user, so that they can see why a message failed to be delivered even if the error came after they went offline. | ||||
* | mod_mam: Store XEP-0184 receipts and requests | Kim Alvefur | 2020-04-21 | 1 | -0/+5 |
| | | | | Happy now Ge0rG? | ||||
* | mod_mam: Add more positive hints for storage | Kim Alvefur | 2020-04-21 | 1 | -0/+12 |
| | | | | Mostly just lifted from mod_csi_simple | ||||
* | mod_mam: Rework hints handling | Kim Alvefur | 2020-04-21 | 1 | -7/+6 |
| | | | | Improved readability and early returns definite yes/no answer. | ||||
* | mod_mam: Invert check for type | Kim Alvefur | 2020-04-21 | 1 | -5/+13 |
| | | | | | This is based on code in mod_csi_simple and aiming towards being more flexible and maintainable than a couple of tests for when not to store. |