Software /
code /
prosody
Comparison
plugins/mod_pubsub/pubsub.lib.lua @ 8320:fe5eaf4ed631
mod_pep_plus: Make node persistence configurable via pubsub#persist_items
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 12 Oct 2017 01:37:35 +0200 |
parent | 8318:d0a7fc7614de |
child | 8323:f2c1d65f706b |
comparison
equal
deleted
inserted
replaced
8319:57e3ad11f3f6 | 8320:fe5eaf4ed631 |
---|---|
43 { | 43 { |
44 type = "text-single"; | 44 type = "text-single"; |
45 name = "pubsub#max_items"; | 45 name = "pubsub#max_items"; |
46 label = "Max # of items to persist"; | 46 label = "Max # of items to persist"; |
47 }; | 47 }; |
48 { | |
49 type = "boolean"; | |
50 name = "pubsub#persist_items"; | |
51 label = "Persist items to storage"; | |
52 }; | |
48 }; | 53 }; |
49 | 54 |
50 function handlers.get_items(origin, stanza, items, service) | 55 function handlers.get_items(origin, stanza, items, service) |
51 local node = items.attr.node; | 56 local node = items.attr.node; |
52 local item = items:get_child("item"); | 57 local item = items:get_child("item"); |