Kim Alvefur
63f44f3640
mod_pubsub: Fix notification stanza type setting ( fixes #1605 )
5 years ago
Kim Alvefur
ce3e3808f5
mod_pubsub: Lower priority of default <body> generator
...
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
5 years ago
Kim Alvefur
7af694f510
mod_pubsub: Comment on itemstore type
5 years ago
Kim Alvefur
042b514235
mod_pubsub, mod_pep: Ensure correct number of children of <item/> ( fixes #1496 )
6 years ago
Kim Alvefur
4673e4897b
mod_pubsub: Simplify configuration for node data (see #1302 )
7 years ago
Kim Alvefur
e6400cd0d8
pubsub: Set pubsub#title as name attribute in disco#items ( fixes #1226 )
7 years ago
Kim Alvefur
6b22fae603
mod_pubsub: Fix summary generation for Atom entries to use the correct field
7 years ago
Kim Alvefur
533cefaaf1
mod_pubsub: Add support for thin notifications (without the full payload)
7 years ago
Kim Alvefur
8d3bfff0c2
mod_pubsub: Only attach publisher on normal "item" broadcasts
...
The 'publisher' is only on <item> in the schema.
7 years ago
Kim Alvefur
1e2b0d97f0
mod_pubsub: Prepare to support turning notifications off for each kind of broadcast
7 years ago
Kim Alvefur
98c9778cc7
util.pubsub: Pass "retract" as the type of such broadcasts
...
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.
7 years ago
Matthew Wild
ff222c379d
mod_pubsub, mod_pep, util.pubsub: Move capability definitions into util.pubsub to avoid duplication
8 years ago
Kim Alvefur
31443e5e2e
mod_pubsub, mod_pep: The "restricted" affiliation should be allowed to be unsubscribed but nothing else
...
Can't revoke their subscriptions on change of access model otherwise
8 years ago
Kim Alvefur
9c54f104f1
mod_pubsub: Add 'get_configuration' capability to relevant affiliations
...
Like ca5228a7d907 did for mod_pep
Thanks pep.
8 years ago
Kim Alvefur
abeade9213
mod_pubsub: Add a public method for retrieving the service object
...
There is already a set_service()
8 years ago
Matthew Wild
756c775043
mod_pubsub: Add comment to document nodestore/itemstore methods
8 years ago
Kim Alvefur
4310c5f921
mod_pubsub: Restrict access model to 'whitelist' and 'open'
...
'presence' and 'roster' makes more sense for PEP
'auithorize' needs additional code for authorization flow
8 years ago
Kim Alvefur
b4e05514d2
mod_pubsub: Add configurable maximum on number of items
...
Like aefb96a52f5f
8 years ago
Kim Alvefur
5db776ea9e
mod_pubsub: Make generation of notification body into an event to allow extensibility
8 years ago
Kim Alvefur
0f1bc72843
mod_pubsub: Skip checks for adding body if no body generated
8 years ago
Kim Alvefur
9003eb5433
mod_pubsub: Remove unneeded stanza API call
8 years ago
Kim Alvefur
97644a7189
mod_pubsub: Move include_body option into subscription options
8 years ago
Kim Alvefur
eb28cd503f
mod_pubsub: Move service discovery to pubsub.lib to allow reuse
8 years ago
Kim Alvefur
eb45d3c3eb
mod_pubsub: Remove feature flag for data persistence since node config is now persistent
8 years ago
Kim Alvefur
fd8a2e2de4
mod_pubsub: Handle optional item (thanks jonasw)
...
The ‘item’ argument is optional, so it needs to handle it not being
included, or util.stanza will throw an error in add_child
8 years ago
Kim Alvefur
cc6d427f21
mod_pubsub: Add support for generation of a plain text <body> from Atom payloads
...
See https://xmpp.org/extensions/xep-0060.html#impl-body
8 years ago
Kim Alvefur
ee3814c0bf
mod_pubsub: Make the 'type' attribute on broadcast messages configurable
...
This adds support for the pubsub#notification_type field in the node
config form.
8 years ago
Kim Alvefur
8221c93baf
mod_pubsub: Set an id attribute on outgoing event messages
...
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
8 years ago
Kim Alvefur
1700e2669a
mod_pubsub: Use moduleapi broadcast method
8 years ago
Kim Alvefur
f13a157f2e
mod_pubsub: Reject publishing of non-items
8 years ago
Matthew Wild
27db2bc431
mod_pubsub: Ignore unused parameter [luacheck]
8 years ago
Matthew Wild
7ee19812b5
mod_pubsub: Add nodestore to service configuration
8 years ago
Matthew Wild
4009623774
mod_pubsub: Some variable renames for clarity
8 years ago
Kim Alvefur
dbdac03b2d
mod_pubsub: Move service feature dection to pubsub.lib to allow reuse
8 years ago
Kim Alvefur
1fc4aa1192
mod_pep_plus, mod_pubsub: Remove unused reference to pubsub.lib handlers [luacheck]
8 years ago
Kim Alvefur
c4c07e032b
mod_pubsub: Add support for Create and Configure
8 years ago
Kim Alvefur
0e1cdb6a2a
mod_pubsub: Move dispatch function into pubsub.lib
8 years ago
Kim Alvefur
1097322800
mod_pubsub: Fix feature advertising of config-node and retrieve-default
...
It confused pubsub.lib handler names with util.pubsub service methods
8 years ago
Kim Alvefur
3c4d4322b3
mod_pubsub: Remove expose_publisher argument since it is handled in broadcaster
8 years ago
Kim Alvefur
25b5ef2889
mod_pubsub, mod_pep_plus: Rename simple_itemstore to reflect that it's based on archive storage
8 years ago
Kim Alvefur
6e5c3bd41f
mod_pubsub: Hide item persistence behind option (at least until affiliations are also persisted)
8 years ago
Kim Alvefur
1757bceae2
mod_pubsub: Restore persistence with one archive per node
8 years ago
Kim Alvefur
4cfc3d05d5
mod_pubsub: Comment out data persistence for now (weird without config persistence)
8 years ago
Kim Alvefur
d00c4eecc2
mod_pubsub: Pass 'user' to simple_itemstore
9 years ago
Emmanuel Gil Peyrot
a3dcce859a
mod_pubsub: Add item persistence using mod_storage_*’s archive store.
9 years ago
Emmanuel Gil Peyrot
d5e04ad835
mod_pubsub: Fix a few warnings [luacheck]
9 years ago
Matthew Wild
b9135dfdd2
mod_pubsub: Fix syntax error introduced in 241f02bd66ce
9 years ago
Kim Alvefur
136d153105
mod_pubsub: Rely on type checking in module API
9 years ago
Kim Alvefur
7860ab4b12
mod_pubsub: Move a comment to where it makes sense
...
This code has moved but the comment did not follow it.
7 years ago
Kim Alvefur
c9419f8280
Backed out changeset f1af4edd5722, doesn't work as intended (node is the name of the node and always present)
9 years ago