Commit graph

7 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
c880dee2af mod_pubsub,mod_pep: Support "max" as 'pubsub#max_items'
Fixes #1643

API change: The argument to archive_itemstore() changes type to integer
2021-06-09 15:58:49 +02:00
Kim Alvefur
e6400cd0d8 pubsub: Set pubsub#title as name attribute in disco#items (fixes #1226) 2018-10-30 18:20:54 +01:00