mod_cloud_notify/mod_cloud_notify.lua
changeset 2202 eb53a830864c
parent 2145 218a3d3f7f97
child 2204 e9e38ae8037f
equal deleted inserted replaced
2201:90a444ccaa8e 2202:eb53a830864c
     9 local filters = require "util.filters";
     9 local filters = require "util.filters";
    10 
    10 
    11 local xmlns_push = "urn:xmpp:push:0";
    11 local xmlns_push = "urn:xmpp:push:0";
    12 
    12 
    13 -- configuration
    13 -- configuration
    14 local include_body = module:get_option("push_notification_with_body", true);
    14 local include_body = module:get_option("push_notification_with_body", false);
    15 local include_sender = module:get_option("push_notification_with_sender", true);
    15 local include_sender = module:get_option("push_notification_with_sender", false);
    16 
    16 
    17 -- For keeping state across reloads
    17 -- For keeping state across reloads
    18 local push_enabled = module:shared("push-enabled-users");
    18 local push_enabled = module:shared("push-enabled-users");
    19 
    19 
    20 -- http://xmpp.org/extensions/xep-0357.html#disco
    20 -- http://xmpp.org/extensions/xep-0357.html#disco