Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mod_pubsub: Move reversal of item order in <items> | Kim Alvefur | 2021-09-05 | 1 | -3/+9 |
| | | | | | | | | | | | | Examples in XEP-0060 suggest that items should be listed in chronological order, but we get them from the archive in reverse order. However when requesting specific items by id the results keep that order and we don't want to flip it again. At some point it would likely be best to use the archive API directly instead of this util.cache-compatible wrapper. | ||||
* | mod_pubsub: Add support for limiting result size #1608 | Kim Alvefur | 2021-09-05 | 1 | -1/+5 |
| | |||||
* | mod_pubsub: Update callbacks on reload to more completely refresh config | Kim Alvefur | 2021-07-29 | 1 | -0/+8 |
| | | | | | | | | | This would also release any resources held via references from these callbacks. I'm not sure why we don't just re-new() the whole thing. Related to #1382 | ||||
* | mod_pubsub: Update configuration on reload (fixes #1382) | Kim Alvefur | 2021-07-25 | 1 | -0/+3 |
| | | | | | | Because of the way the previous pubsub service is carried access module reloads, it would retain the configuration options with their previous values from when the service was first created. | ||||
* | mod_pubsub: Silence warning about 'service' as argument [luacheck] | Kim Alvefur | 2021-07-25 | 1 | -1/+1 |
| | | | | | Maybe the 'service' in the outer scope should be moved down to minimize overlap with other functions that receive the same service as argument? | ||||
* | util.pubsub: Signal that 'persistent-items' is unsupported when disabled | Kim Alvefur | 2021-07-22 | 1 | -0/+1 |
| | | | | | | XEP-0060 says that this the way to indicate that 'persistent-items' is unsupported, but doesn't explicitly say if it being disabled in the node configuration also counts as unsupported. | ||||
* | mod_pubsub: Explicitly enable persistence by default to preserve behavior | Kim Alvefur | 2021-07-21 | 1 | -0/+3 |
| | | | | | | Since nodes were always persistent according to the XEP-0060 definition. Whether data is stored in memory or on disk was not what this setting was meant for. | ||||
* | mod_pubsub: Remove publisher field when not exposing publisher | Kim Alvefur | 2021-07-25 | 1 | -1/+3 |
| | | | | | The publisher is already there on the item when the broadcaster gets it, so it needs to do the opposite thing. | ||||
* | mod_pubsub: Normalize 'publisher' JID | Kim Alvefur | 2021-07-25 | 1 | -2/+2 |
| | | | | | | | | | | | | | All the XEP-0060 examples have the publisher attribute set to a bare JID, but the text does allow it to be the full JID. Since mod_pubsub is more likely used for open nodes that anyone can subscribe to it makes sense to not leak the full JIDs. This is also disabled by defaults. In mod_pep on the other hand it might make sense to have the full JID since that data is more likely to be broadcast to contacts which are already somewhat trusted. | ||||
* | mod_pubsub: Respect 'expose publisher' setting in item retrieval | Kim Alvefur | 2021-07-25 | 2 | -1/+9 |
| | |||||
* | mod_pubsub: Fix inclusion of publisher (fixes #1399) | Kim Alvefur | 2019-05-01 | 1 | -2/+5 |
| | |||||
* | mod_pubsub,mod_pep: Support "max" as 'pubsub#max_items' | Kim Alvefur | 2021-06-09 | 2 | -7/+14 |
| | | | | | | Fixes #1643 API change: The argument to archive_itemstore() changes type to integer | ||||
* | mod_pubsub: Include <pubsub> with unsubscribe reply | Kim Alvefur | 2021-03-15 | 1 | -1/+7 |
| | | | | | | | | | XEP-0060 6.2.2 This is a MAY but it makes it nice and symmetric with the subscription response. Reduces the need to remember which node you unsubscribed from. Explicit > implicit etc. | ||||
* | Merge 0.11->trunk | Kim Alvefur | 2020-11-06 | 1 | -1/+1 |
|\ | |||||
| * | mod_pubsub: Fix notification stanza type setting (fixes #1605) | Kim Alvefur | 2020-11-06 | 1 | -1/+1 |
| | | |||||
* | | Merge 0.11->trunk | Kim Alvefur | 2020-11-05 | 2 | -18/+28 |
|\ \ | |/ |/| | |||||
| * | mod_pubsub: Comment on itemstore type | Kim Alvefur | 2020-10-25 | 1 | -1/+1 |
| | | |||||
| * | mod_pubsub: Clarify kind of item store created | Kim Alvefur | 2020-10-25 | 1 | -1/+1 |
| | | | | | | | | | | Planning to make this configurable, so good to distinguish it from future backends. | ||||
| * | mod_pubsub: Don't set store as metatable | Kim Alvefur | 2020-10-25 | 1 | -1/+1 |
| | | | | | | | | | | 'archive' is not a metatable here, so this has no effect. Remove since apparently nothing depends on this. | ||||
| * | Merge 0.11->trunk | Kim Alvefur | 2020-02-27 | 1 | -1/+1 |
| |\ | |||||
| * | | mod_pubsub: Ignore an unused variable [luacheck] | Kim Alvefur | 2019-12-23 | 1 | -0/+1 |
| | | | |||||
| * | | util.pubsub, pubsub.lib and tests: Add text to precondition-not-met error ↵ | Matthew Wild | 2019-10-27 | 1 | -0/+4 |
| | | | | | | | | | | | | (fixes #1455) | ||||
| * | | mod_pubsub: Remove the unwanted check for @notify on <purge/>. | Emmanuel Gil Peyrot | 2019-09-28 | 1 | -3/+2 |
| | | | | | | | | | | | | | | | | | | This most likely was copied from the handling of <retract/>, where it actually is required by the spec (XEP-0060 §7.2.2.1), but this attribute doesn’t exist for purge. | ||||
| * | | mod_pubsub: Eliminate dead code | Kim Alvefur | 2019-07-25 | 1 | -8/+3 |
| | | | | | | | | | | | | `data` is a stanza and always truthy | ||||
| * | | mod_pubsub: Move a comment to where it makes sense | Kim Alvefur | 2019-07-10 | 1 | -1/+1 |
| | | | | | | | | | | | | This code has moved but the comment did not follow it. | ||||
| * | | mod_pubsub: Expose pubsub#access_model and pubsub#publish_model (fixes #1387) | Kim Alvefur | 2019-07-06 | 1 | -0/+10 |
| | | | |||||
| * | | Merge 0.11->trunk | Kim Alvefur | 2019-02-22 | 1 | -1/+3 |
| |\ \ | |||||
| * \ \ | Merge 0.11->trunk | Kim Alvefur | 2019-01-28 | 1 | -3/+9 |
| |\ \ \ | |||||
| * | | | | mod_pubsub: Split line in config check to improve readability | Kim Alvefur | 2018-12-23 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | Also makes it easier to compare with mod_pep | ||||
| * | | | | mod_pubsub: Change order of luacheck directives to match arguments they apply to | Kim Alvefur | 2018-12-23 | 1 | -1/+1 |
| | | | | | |||||
| * | | | | mod_pubsub: Add semicolon (code style) | Kim Alvefur | 2018-12-23 | 1 | -1/+1 |
| | | | | | |||||
* | | | | | mod_pubsub: Lower priority of default <body> generator | Kim Alvefur | 2020-11-05 | 1 | -1/+1 |
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | in order to avoid conflict with a handler at the default (0) priority, making it easier to write your own formatting in plugins. this follows the common pattern of default modules having lower priority | ||||
* | | | | mod_pubsub, mod_pep: Ensure correct number of children of <item/> (fixes #1496) | Kim Alvefur | 2020-02-27 | 1 | -1/+1 |
| |_|/ |/| | | |||||
* | | | mod_pubsub: Simplify configuration for node data (see #1302) | Kim Alvefur | 2019-02-22 | 1 | -1/+3 |
| |/ |/| | |||||
* | | mod_pubsub: Support requests for multiple items (fixes #1305) | Kim Alvefur | 2019-01-28 | 1 | -3/+9 |
|/ | |||||
* | pubsub: Set pubsub#title as name attribute in disco#items (fixes #1226) | Kim Alvefur | 2018-10-30 | 1 | -1/+1 |
| | |||||
* | mod_pubsub: Exclude value of FORM_TYPE from stored data | Kim Alvefur | 2018-09-07 | 1 | -3/+3 |
| | |||||
* | mod_pubsub: Fix dataforms error handling | Kim Alvefur | 2018-09-01 | 1 | -8/+27 |
| | | | | | The :data method returns the table holding parsed values always. The second return value is a table in case some fields had problems. | ||||
* | mod_pubsub: Use dataforms validation to specify that max_items is an integer | Kim Alvefur | 2018-09-01 | 1 | -0/+1 |
| | |||||
* | mod_pubsub: Use field mapping in util.dataforms | Kim Alvefur | 2018-09-01 | 1 | -75/+30 |
| | |||||
* | mod_pubsub: Preserve current subscription options if given a partial form | Kim Alvefur | 2018-08-31 | 1 | -1/+2 |
| | |||||
* | mod_pubsub: Fix summary generation for Atom entries to use the correct field | Kim Alvefur | 2018-08-31 | 1 | -1/+1 |
| | |||||
* | mod_pubsub: Add missing default value for deliver_payloads | Kim Alvefur | 2018-08-19 | 1 | -0/+1 |
| | |||||
* | mod_pubsub: Fix boolean value in form | Kim Alvefur | 2018-08-19 | 1 | -1/+1 |
| | |||||
* | mod_pubsub: Add a semicolon for consistency | Kim Alvefur | 2018-08-19 | 1 | -1/+1 |
| | |||||
* | util.pubsub, pubsub.lib: Improve error on attempt to publish invalid item | Matthew Wild | 2018-08-18 | 1 | -0/+1 |
| | |||||
* | Pubsub: Add tests for :get_last_item() and fix for non-persistent nodes | Matthew Wild | 2018-08-18 | 1 | -2/+2 |
| | |||||
* | pubsub.lib, util.pubsub: Move precondition checks to util.pubsub | Matthew Wild | 2018-08-18 | 1 | -31/+3 |
| | |||||
* | mod_pubsub: Advertise support for subscription-options | Kim Alvefur | 2018-08-18 | 1 | -1/+1 |
| | | | | Initial support was added in d614003a82c1 | ||||
* | mod_pubsub: Advertise support for node meta-data | Kim Alvefur | 2018-08-18 | 1 | -1/+1 |
| | | | | Node metadata in disco initially added in b6cb0a8f75b1 |