Software /
code /
prosody
Comparison
plugins/mod_cloud_notify.lua @ 13702:4b83dbcddcff
Merge 13.0->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 15 Feb 2025 10:34:26 +0000 |
parent | 13701:1aa7efabeacb |
comparison
equal
deleted
inserted
replaced
13699:4ba7216579eb | 13702:4b83dbcddcff |
---|---|
3 -- Copyright (C) 2017-2019 Thilo Molitor | 3 -- Copyright (C) 2017-2019 Thilo Molitor |
4 -- | 4 -- |
5 -- This file is MIT/X11 licensed. | 5 -- This file is MIT/X11 licensed. |
6 | 6 |
7 local os_time = os.time; | 7 local os_time = os.time; |
8 local st = require"util.stanza"; | 8 local st = require"prosody.util.stanza"; |
9 local jid = require"util.jid"; | 9 local jid = require"prosody.util.jid"; |
10 local dataform = require"util.dataforms".new; | 10 local dataform = require"prosody.util.dataforms".new; |
11 local hashes = require"util.hashes"; | 11 local hashes = require"prosody.util.hashes"; |
12 local random = require"util.random"; | 12 local random = require"prosody.util.random"; |
13 local cache = require"util.cache"; | 13 local cache = require"prosody.util.cache"; |
14 local watchdog = require "util.watchdog"; | 14 local watchdog = require "prosody.util.watchdog"; |
15 | 15 |
16 local xmlns_push = "urn:xmpp:push:0"; | 16 local xmlns_push = "urn:xmpp:push:0"; |
17 | 17 |
18 -- configuration | 18 -- configuration |
19 local include_body = module:get_option_boolean("push_notification_with_body", false); | 19 local include_body = module:get_option_boolean("push_notification_with_body", false); |