Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mod_pubsub: Allow configuring summary templates | Kim Alvefur | 2022-01-24 | 1 | -6/+11 |
| | | | | | Enables generation of summaries for more than Atom without additional modules. | ||||
* | mod_pubsub: Use the util.xtemplate to render Atom summary | Kim Alvefur | 2022-01-24 | 1 | -9/+3 |
| | |||||
* | mod_pubsub: Use the 'pubsub#type' setting to pick summary generator | Kim Alvefur | 2022-01-24 | 1 | -1/+2 |
| | | | | | | Allows using different ones even if multiple semantically different formats share the same root element xmlns, e.g. generic Atom and XEP-0277 entries. | ||||
* | util.pubsub: Fix item store resize to "max" | Kim Alvefur | 2022-01-06 | 1 | -0/+1 |
| | | | | | Previously this would end up passing the "max" directly to the underlying storage. | ||||
* | mod_pubsub: Allow specifying the JID of the pubsub service | Kim Alvefur | 2021-12-07 | 1 | -0/+1 |
| | | | | | This allows overriding it in cases where it is not equal to module.host, like say, in mod_pep | ||||
* | mod_pubsub,mod_pep: Advertise maximum number of items via XEP-0122 | Kim Alvefur | 2021-10-20 | 1 | -0/+7 |
| | | | | | | Clients would generally be using the "max" symbol instead of discovering this, but this also gets us validation and earlier rejection of out of bounds values. | ||||
* | 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? | ||||
* | 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 | 1 | -0/+1 |
| | |||||
* | mod_pubsub,mod_pep: Support "max" as 'pubsub#max_items' | Kim Alvefur | 2021-06-09 | 1 | -3/+11 |
| | | | | | | Fixes #1643 API change: The argument to archive_itemstore() changes type to integer | ||||
* | 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 | 1 | -5/+6 |
|\ \ | |/ |/| | |||||
| * | mod_pubsub: Comment on itemstore type | Kim Alvefur | 2020-10-25 | 1 | -1/+1 |
| | | |||||
| * | Merge 0.11->trunk | Kim Alvefur | 2020-02-27 | 1 | -1/+1 |
| |\ | |||||
| * | | 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. | ||||
| * | | Merge 0.11->trunk | Kim Alvefur | 2019-02-22 | 1 | -1/+3 |
| |\ \ | |||||
| * | | | 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 |
|/ | |||||
* | pubsub: Set pubsub#title as name attribute in disco#items (fixes #1226) | Kim Alvefur | 2018-10-30 | 1 | -1/+1 |
| | |||||
* | mod_pubsub: Fix summary generation for Atom entries to use the correct field | Kim Alvefur | 2018-08-31 | 1 | -1/+1 |
| | |||||
* | mod_pubsub: Add support for thin notifications (without the full payload) | Kim Alvefur | 2018-08-16 | 1 | -0/+3 |
| | |||||
* | mod_pubsub: Only attach publisher on normal "item" broadcasts | Kim Alvefur | 2018-08-16 | 1 | -2/+4 |
| | | | | The 'publisher' is only on <item> in the schema. | ||||
* | mod_pubsub: Prepare to support turning notifications off for each kind of ↵ | Kim Alvefur | 2018-08-16 | 1 | -0/+5 |
| | | | | broadcast | ||||
* | util.pubsub: Pass "retract" as the type of such broadcasts | Kim Alvefur | 2018-08-16 | 1 | -0/+4 |
| | | | | | | | | This moves some XEP-0060 awkwardness out of util.pubsub and into mod_pubsub A retraction is broadcast in an <items> container, whereas most other kinds of broadcasts are in a container with a name matching the 'kind' attribute. | ||||
* | mod_pubsub, mod_pep, util.pubsub: Move capability definitions into ↵ | Matthew Wild | 2018-08-08 | 1 | -78/+0 |
| | | | | util.pubsub to avoid duplication | ||||
* | mod_pubsub, mod_pep: The "restricted" affiliation should be allowed to be ↵ | Kim Alvefur | 2018-08-06 | 1 | -0/+4 |
| | | | | | | unsubscribed but nothing else Can't revoke their subscriptions on change of access model otherwise | ||||
* | mod_pubsub: Add 'get_configuration' capability to relevant affiliations | Kim Alvefur | 2018-08-05 | 1 | -0/+2 |
| | | | | | | Like ca5228a7d907 did for mod_pep Thanks pep. | ||||
* | mod_pubsub: Add a public method for retrieving the service object | Kim Alvefur | 2018-08-05 | 1 | -0/+4 |
| | | | | There is already a set_service() | ||||
* | mod_pubsub: Add comment to document nodestore/itemstore methods | Matthew Wild | 2018-08-04 | 1 | -0/+14 |
| | |||||
* | mod_pubsub: Restrict access model to 'whitelist' and 'open' | Kim Alvefur | 2018-08-04 | 1 | -0/+3 |
| | | | | | 'presence' and 'roster' makes more sense for PEP 'auithorize' needs additional code for authorization flow | ||||
* | mod_pubsub: Add configurable maximum on number of items | Kim Alvefur | 2018-08-04 | 1 | -0/+9 |
| | | | | Like aefb96a52f5f | ||||
* | mod_pubsub: Make generation of notification body into an event to allow ↵ | Kim Alvefur | 2018-07-14 | 1 | -11/+17 |
| | | | | extensibility | ||||
* | mod_pubsub: Skip checks for adding body if no body generated | Kim Alvefur | 2018-07-14 | 1 | -1/+1 |
| | |||||
* | mod_pubsub: Remove unneeded stanza API call | Kim Alvefur | 2018-07-14 | 1 | -1/+0 |
| | |||||
* | mod_pubsub: Move include_body option into subscription options | Kim Alvefur | 2018-07-14 | 1 | -6/+11 |
| | |||||
* | mod_pubsub: Move service discovery to pubsub.lib to allow reuse | Kim Alvefur | 2018-07-06 | 1 | -17/+2 |
| | |||||
* | mod_pubsub: Remove feature flag for data persistence since node config is ↵ | Kim Alvefur | 2018-07-01 | 1 | -9/+0 |
| | | | | now persistent | ||||
* | mod_pubsub: Handle optional item (thanks jonasw) | Kim Alvefur | 2018-06-28 | 1 | -2/+5 |
| | | | | | The ‘item’ argument is optional, so it needs to handle it not being included, or util.stanza will throw an error in add_child | ||||
* | mod_pubsub: Add support for generation of a plain text <body> from Atom payloads | Kim Alvefur | 2018-05-21 | 1 | -0/+20 |
| | | | | See https://xmpp.org/extensions/xep-0060.html#impl-body | ||||
* | mod_pubsub: Make the 'type' attribute on broadcast messages configurable | Kim Alvefur | 2018-05-21 | 1 | -2/+4 |
| | | | | | This adds support for the pubsub#notification_type field in the node config form. | ||||
* | mod_pubsub: Set an id attribute on outgoing event messages | Kim Alvefur | 2018-05-21 | 1 | -1/+4 |
| | | | | | | | https://xmpp.org/extensions/xep-0060.html#impl-bounce > a pubsub service SHOULD ensure that the <message/> stanza for each > event notification it generates possesses an 'id' attribute with a > value |