Commit graph

6 commits

Author SHA1 Message Date
Kim Alvefur
71ad48095d plugins: Use integer config API with interval specification where sensible
Many of these fall into a few categories:
- util.cache size, must be >= 1
- byte or item counts that logically can't be negative
- port numbers that should be in 1..0xffff
2023-07-17 01:38:54 +02:00
Kim Alvefur
1987a7411f plugins: Switch to :get_option_period() for time range options
Improves readability ("1 day" vs 86400) and centralizes validation.
2023-07-16 20:49:33 +02:00
Kim Alvefur
98922d54b1 plugins: Prefix module imports with prosody namespace 2023-03-24 13:15:28 +01:00
Matthew Wild
4272c931ae mod_tombstones: Add caching to improve performance on busy servers (fixes #1728) 2022-03-28 11:08:18 +01:00
Kim Alvefur
18ef5ec4d8 mod_tombstones: Add some future TODOs 2021-12-23 15:22:47 +01:00
Kim Alvefur
146709a2dd mod_tombstones: Remember deleted accounts #1307
Presence subscriptions are normally revoked on account deletion, which
informs the contact. Sometimes this notification gets lost e.g. due to
s2s problems. The accounts JID may also be present e.g. in MUC
affiliations, chat group member lists, pubsub subscriptions or other
systems. These may grant privileges which would fall to someone who
creates the same account again, which this module is meant to prevent.
2021-12-23 14:08:20 +01:00