Commit graph

89 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
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
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
Waqas Hussain
dc9f2471ca mod_pep: Fixed a nil access (thanks Zash). 2010-11-28 12:58:54 +05:00
Waqas Hussain
7e7ab28459 mod_pep: Optimised PEP requests for disco info on caps change (issue #150). 2010-11-28 07:43:19 +05:00
Waqas Hussain
ba7e54b966 mod_pep: Updated disco#info result handler to use new event name format. 2010-11-28 02:05:52 +05:00
Matthew Wild
ad5b4ee77f mod_pep: Use util.caps 2010-07-09 13:22:58 +01:00
Waqas Hussain
0b720ffe35 mod_pep: Fixed a possible traceback during disco#items queries on a user's bare JID by remote users. 2010-06-24 03:29:39 +05:00
Waqas Hussain
b72412126e mod_pep: Corrected and optimized handling of non-available presence stanzas. 2010-06-02 01:54:17 +05:00
Matthew Wild
7f29c6d34a mod_pep: Use is_contact_subscribed (which uses the new rostermanager fix to avoid unnecessary roster loads) 2010-06-01 20:10:17 +01:00
Matthew Wild
46c0b8c7f9 Merge 0.6->0.7 2010-03-22 17:24:55 +00:00
Matthew Wild
2bc0606453 Update copyright headers for 2010 2010-03-22 17:06:15 +00:00