Commit graph

148 commits

Author SHA1 Message Date
Kim Alvefur
b57ae7dc18 mod_pep: Note which subscriptions are presence based as subscription option 2018-08-05 01:56:36 +02:00
Matthew Wild
b00069940d mod_pep: Add 'get_configuration' capability to relevant affiliations 2018-08-05 00:04:56 +01:00
Kim Alvefur
a5c2b5abdf mod_pep: Add comments describing root tables used for data 2018-08-04 23:44:34 +02:00
Kim Alvefur
f884543a6d mod_pep: Restrict access models to 'presence', 'whitelist' and 'open'
'roster' needs additional support to inspect roster groups
'authorize' is not implemented
2018-08-04 03:40:30 +02:00
Kim Alvefur
50126a53b9 mod_pep: Move subscriber check into 'presence' access model callback 2018-08-04 03:13:26 +02:00
Kim Alvefur
2551d819b5 mod_pep: Set default access model to 'presence' 2018-08-04 03:38:55 +02:00
Kim Alvefur
46d630b02d mod_pep: Return true if all node config checks passes (fixes configuration)
util.pubsub would treat the default nil return as falsy and reject all
attempts to configure nodes
2018-08-03 20:39:18 +02:00
Kim Alvefur
4e91846a0b mod_pep: Silence warnings about unused arguments [luacheck] 2018-08-03 17:15:42 +02:00
Matthew Wild
5e053492eb mod_pep: Add 'pep_max_items' option to set an upper limit, defaults to 256 (scientifically chosen) 2018-08-01 19:18:31 +01:00
Matthew Wild
860e165c3b mod_pep -> mod_pep_simple, mod_pep_plus -> mod_pep 2018-08-01 19:08:09 +01:00
Kim Alvefur
d3f6d6cfa9 mod_pep: Remove unused variable [luacheck] 2018-07-06 00:06:00 +02:00
Kim Alvefur
97f4bd0e64 mod_pep: Rename variables to avoid name clash [luacheck] 2018-07-06 00:04:26 +02:00
Kim Alvefur
ec9c7c37aa mod_pep: Move comment to a shorter line [luacheck] 2018-07-06 00:04:13 +02:00
Kim Alvefur
3ec060fc0c Fix spelling throughout the codebase [codespell] 2018-02-04 01:51:25 +01:00
Kim Alvefur
8fa4c7b78c mod_pep: Advertise pubsub features that I believe to be implented 2017-10-17 05:22:43 +02:00
Kim Alvefur
d0bb8df2d5 mod_pep: Remove disco identity and feature from the host (changed in XEP-0163 version 1.2) 2017-10-17 05:20:11 +02:00
Kim Alvefur
47c821cf54 mod_pep: Handle disco#info queries to nodes (fixes #805) 2017-04-24 23:27:21 +02:00
Kim Alvefur
6104767242 mod_pep: Split long line [luacheck] 2017-04-24 22:19:27 +02:00
Kim Alvefur
d1e163f9d7 mod_pep: Add some additional debug logging 2017-01-28 15:31:57 +01:00
Kim Alvefur
37a74662f0 mod_pep: Only log when creating new pubsub services
Once upon a time get_pep_service() would get called with random bare
JIDs and remote hostnames, which is why it was logged this way. This
seems to have been fixed, so it's not as useful anymore. It's still
useful to know when it creates a new service object.
2019-07-09 15:12:32 +02:00
Kim Alvefur
9935e64396 mod_pep: Log node name instead of payload
Having the node logged is more useful and less problematic for privacy
2019-06-16 22:02:53 +02:00
Kim Alvefur
5eba0ea836 Merge 0.11->trunk 2019-06-10 13:22:22 +02:00
Kim Alvefur
8848e1ea6c Merge 0.11->trunk 2019-05-30 21:44:35 +02:00
Kim Alvefur
331c8a1358 mod_pep: Use correct field for full JID (thanks Milan*) 2016-06-10 14:55:05 +02:00
Kim Alvefur
39de480ad8 mod_pep: Include the bare user jid in event 2016-06-09 10:30:33 +02:00
Matthew Wild
99fd12af8f Merge 0.9->0.10 2015-09-25 16:51:42 +01:00
Matthew Wild
1ec2105627 mod_pep: Don't store contacts' subscriptions to a user's nodes when that user is offline 2015-09-25 16:48:25 +01:00
Matthew Wild
f9dac3e9d2 mod_pep: Document data structures, so I don't have to spend time remembering every time I work on this module 2015-09-04 11:26:51 +01:00
Kim Alvefur
f19598cd27 mod_pep: Fire an event when an item is published 2014-12-20 21:34:59 +01:00
Matthew Wild
2a7c458b2f Merge 0.9->trunk 2013-08-24 23:16:08 +01:00
Matthew Wild
9c72583d71 mod_pep: Update COMPAT comment, it seems Asterisk 1.8 also suffers from this issue (thanks Lonnie Abelbeck) 2013-08-24 23:15:24 +01:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Matthew Wild
a3e3c7ecc7 Merge 0.9->trunk 2013-06-13 13:56:58 +01:00
Florian Zeitz
7507b21e6a mod_pep: When a client supplies no id on a published item, reflect our generated id back to it 2013-06-13 13:56:35 +01:00
Florian Zeitz
421bdc4399 mod_disco: Emit events for disco requests, which contain a node, on user accounts 2013-05-17 18:35:50 +02:00
Kim Alvefur
4eb35217ee mod_pep: Remove unused imports 2012-10-14 21:03:52 +02:00
Kim Alvefur
d940f07469 Merge 0.11->trunk 2019-02-22 07:40:30 +01:00
Kim Alvefur
6eb576e9d9 mod_pep: Set an 'id' on notifications
mod_pubsub got this in f2d35eee69c9
2018-12-23 02:56:10 +01:00
Kim Alvefur
aef3d7a500 mod_pep: Add some spacing between blocks in broadcaster to improve readability 2018-12-23 02:54:39 +01:00
Kim Alvefur
41426ee8d8 mod_pep: Move broadcaster code around to be more like in mod_pubsub
This eases comparing and contrasting these two modules.
2018-12-23 02:53:12 +01:00
Kim Alvefur
2a701f2d8b mod_pep: Remove incorrect features advertised on the bare host 2018-11-01 23:58:41 +01:00
Kim Alvefur
9114e88ee0 mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table. 2012-07-26 04:33:17 +02:00
IRON
6da5a6f1c0 mod_pep: Allow configurable service discovery identity (Fix) 2012-07-25 19:04:42 +03:00
IRON
372049e114 mod_pep: Allow configurable service discovery identity 2012-07-25 18:49:13 +03:00
Waqas Hussain
4b79571a6f mod_pep: Always include a 'from' attribute on service discovery requests to local clients (compatibility fix for OneTeam). 2011-10-13 00:13:49 +05:00
Matthew Wild
1370dd825c mod_pep: Fix comparison between incoming hash and the cached hash for a JID, fixes repeated PEP events on presence (fixes #225) 2011-02-25 00:07:38 +00:00
Waqas Hussain
a985caeff2 mod_pep: Fixed a traceback when non-local users send presence. 2010-12-12 15:42:00 +05:00
Waqas Hussain
ff21209224 mod_pep: Handle the case where local contacts send directed presence with caps hash. 2010-12-12 06:35:53 +05:00
Waqas Hussain
2fd7797f35 mod_pep: Remove PEP subscriptions on getting a presence unsubscribe. 2010-11-28 15:02:56 +05:00
Waqas Hussain
8a3189b145 mod_pep: Fixed regression where PEP messages were not correctly being broadcasted on caps hash change. 2010-11-28 13:11:42 +05:00