Commit graph

6 commits

Author SHA1 Message Date
Kim Alvefur
935de9b5e7 scansion: Add roster groups setting to pubsub form in tests 2024-06-12 23:14:55 +02:00
Matthew Wild
f3792af0fe scansion: Fix tests failing after addition of pubsub#itemreply config field
This is a newly added field, and we expect to see it in these places now.
2023-03-23 14:16:32 +00:00
Kim Alvefur
5016e66640 mod_pubsub,mod_pep: Advertise maximum number of items via XEP-0122
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.
2021-10-20 17:32:34 +02:00
Kim Alvefur
8b769c373d mod_pubsub: Prevent max_items from being set to zero
Disable persistence instead if no items should be persisted.

XEP-0060 is not entirely clear on what either of those option really
mean.
2021-10-20 17:31:24 +02:00
Kim Alvefur
4b05d0f240 mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436
Default left as 'never' in mod_pubsub to preserve the previous behavior.
Unclear if this is desirable, but can always be changed later.

In mod_pep this allows turning off the automatic resending of most
recent item.
2021-10-19 18:11:50 +02:00
Kim Alvefur
22060f15cc mod_pubsub: Add support for limiting result size #1608 2021-09-05 16:43:41 +02:00