aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep.lua
Commit message (Collapse)AuthorAgeFilesLines
* Merge 0.11->trunkKim Alvefur2021-02-151-0/+1
|\
| * mod_pep: Advertise base pubsub feature (fixes #1632)0.11.8Kim Alvefur2021-02-151-0/+1
| | | | | | | | | | Noticed while discussing feature discovery in Gajim Thanks lovetox
* | Merge 0.11->trunkKim Alvefur2020-02-271-1/+1
|\|
| * mod_pubsub, mod_pep: Ensure correct number of children of <item/> (fixes #1496)Kim Alvefur2020-02-271-1/+1
| |
* | Merge 0.11->trunkKim Alvefur2019-12-231-34/+17
|\|
| * mod_pep: Handle presence subscriptions in filter (fixes #1372)Kim Alvefur2019-06-101-34/+17
| | | | | | | | Take two on 045209b41b3a
* | mod_pep: Only log when creating new pubsub servicesKim Alvefur2019-07-091-1/+1
| | | | | | | | | | | | | | 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.
* | mod_pep: Log node name instead of payloadKim Alvefur2019-06-161-1/+1
| | | | | | | | Having the node logged is more useful and less problematic for privacy
* | Merge 0.11->trunkKim Alvefur2019-06-101-5/+10
|\ \ | |/ |/|
| * Merge 0.11->trunkKim Alvefur2019-05-301-39/+16
| |\
| * \ Merge 0.11->trunkKim Alvefur2019-02-221-1/+3
| |\ \
| * | | mod_pep: Set an 'id' on notificationsKim Alvefur2018-12-231-1/+3
| | | | | | | | | | | | | | | | mod_pubsub got this in f2d35eee69c9
| * | | mod_pep: Add some spacing between blocks in broadcaster to improve readabilityKim Alvefur2018-12-231-0/+3
| | | |
| * | | mod_pep: Move broadcaster code around to be more like in mod_pubsubKim Alvefur2018-12-231-3/+6
| | | | | | | | | | | | | | | | This eases comparing and contrasting these two modules.
| * | | mod_pep: Remove incorrect features advertised on the bare hostKim Alvefur2018-11-011-3/+0
| | | |
* | | | mod_pep: Revert 045209b41b3a, caused a regressionKim Alvefur2019-06-101-17/+37
| |_|/ |/| | | | | | | | | | | | | | Adding in all presence based subscriptions in the broadcaster caused resend_last_item() to unintentionally send out more notifications than it should have.
* | | mod_pep: Handle presence based subscription outside of util.pubsub (fixes #1372)Kim Alvefur2019-05-301-37/+17
| |/ |/| | | | | | | | | | | | | | | Subscriptions were updated for each incoming presence stanza from contacts. Each subscription change triggered a configuration save, which would filter out the presence based subscriptions and usually end up replacing the existing data with identical data. With many subscribed nodes this adds up to a fair bit of IO bound work that is avoided by keeping them separate.
* | mod_pep: Simplify configuration for node data (fixes #1320)Kim Alvefur2019-02-221-1/+3
|/
* pubsub: Set pubsub#title as name attribute in disco#items (fixes #1226)Kim Alvefur2018-10-301-1/+1
|
* mod_pep: Add automatic subscriptions on node creation (fixes #1222)Kim Alvefur2018-10-201-1/+21
| | | | | Replaces automatic node creation on subscription, since this casues problems when trying to keep nodes private or other specific settings.
* mod_pep: Add PEP service owners username in configuration to ease identificationKim Alvefur2018-10-201-0/+1
|
* mod_pep: Remove use of recipients table for signaling pending disco#itemsKim Alvefur2018-10-231-16/+7
| | | | | | | | | | It stored the caps hash as a string in the recipients table while waiting for a disco#info response, then replaces it with the set of nodes that had +notify. This mixing of types is bad, so here it gets removed. This can be improved once an IQ tracking API (#714) is added.
* mod_pep: Add all pubsub service objects to item API in order to behave ↵Kim Alvefur2018-10-201-0/+4
| | | | across reloads
* mod_pep: Simplify codeMatthew Wild2018-08-181-2/+1
|
* mod_pep: Remove feature for persistence already added elsewereKim Alvefur2018-08-181-1/+0
| | | | This is added in pubsub.lib
* mod_pep: Remove already included access model featureKim Alvefur2018-08-181-1/+0
| | | | access-* is added in pubsub.lib based on node defaults
* mod_pep: Respect setting for whether to include payload in notificationsKim Alvefur2018-08-161-0/+5
|
* mod_pep: Respect settings for which kinds of notifications to sendKim Alvefur2018-08-161-1/+6
|
* util.pubsub: Pass "retract" as the type of such broadcastsKim Alvefur2018-08-161-0/+3
| | | | | | | | This moves some XEP-0060 awkwardness out of util.pubsub and into mod_pubsub A retraction is broadcast in an <items> container, whereas most other kinds of broadcasts are in a container with a name matching the 'kind' attribute.
* mod_pep, util.pubsub: Rename restricted->outcast, none->member and add new ↵Matthew Wild2018-08-081-5/+2
| | | | 'none' affiliation to better match XEP-0060
* mod_pubsub, mod_pep, util.pubsub: Move capability definitions into ↵Matthew Wild2018-08-081-78/+0
| | | | util.pubsub to avoid duplication
* mod_pep: Add comment explaining 'none' affiliationMatthew Wild2018-08-081-0/+3
|
* mod_pep: Remove "subscriber" affiliation in favour of "none"Matthew Wild2018-08-081-23/+1
| | | | | It ended up with identical capabilities to "none", and isn't a standard affiliation defined by XEP-0060 anyway.
* mod_pep: Loosen restrictions on the "none" affiliationKim Alvefur2018-08-081-6/+6
| | | | | | | This allows non-contacts access to data in nodes with the "open" access model. Thanks gerald
* mod_pep: Change default affiliation in the "presence" access model to ↵Kim Alvefur2018-08-081-0/+1
| | | | | | | "restricted" for non-contacts This lets us loosen the restrictions of the "none" affiliation, so that the "open" access model allows anyone basic access.
* mod_pep: Add comment about 'hash_map' tableKim Alvefur2018-08-061-0/+2
|
* mod_pep: Correct comment about 'recipients' tableKim Alvefur2018-08-061-1/+1
|
* mod_pep: Pass 'recipients' table across module reloadsKim Alvefur2018-08-061-1/+5
|
* mod_pep: Only resend last item on successful subscriptionKim Alvefur2018-08-051-2/+3
|
* mod_pubsub, mod_pep: The "restricted" affiliation should be allowed to be ↵Kim Alvefur2018-08-061-0/+4
| | | | | | unsubscribed but nothing else Can't revoke their subscriptions on change of access model otherwise
* mod_pep: Save non-presence based subscriptions to storageKim Alvefur2018-08-051-2/+7
|
* mod_pep: Note which subscriptions are presence based as subscription optionKim Alvefur2018-08-051-1/+1
|
* mod_pep: Add 'get_configuration' capability to relevant affiliationsMatthew Wild2018-08-051-0/+2
|
* mod_pep: Add comments describing root tables used for dataKim Alvefur2018-08-041-0/+3
|
* mod_pep: Restrict access models to 'presence', 'whitelist' and 'open'Kim Alvefur2018-08-041-0/+5
| | | | | 'roster' needs additional support to inspect roster groups 'authorize' is not implemented
* mod_pep: Move subscriber check into 'presence' access model callbackKim Alvefur2018-08-041-2/+8
|
* mod_pep: Set default access model to 'presence'Kim Alvefur2018-08-041-0/+1
|
* mod_pep: Return true if all node config checks passes (fixes configuration)Kim Alvefur2018-08-031-0/+1
| | | | | util.pubsub would treat the default nil return as falsy and reject all attempts to configure nodes
* mod_pep: Silence warnings about unused arguments [luacheck]Kim Alvefur2018-08-031-1/+1
|
* mod_pep: Add 'pep_max_items' option to set an upper limit, defaults to 256 ↵Matthew Wild2018-08-011-0/+10
| | | | (scientifically chosen)