Software / code / prosody-modules
Comparison
mod_push2/mod_push2.lua @ 6267:ff7d6ee9db20
mod_push2: remove debug log
| author | Stephen Paul Weber <singpolyma@singpolyma.net> |
|---|---|
| date | Tue, 27 May 2025 06:25:49 -0500 |
| parent | 6266:6164849469f1 |
| child | 6311:27bb0bc3f4b5 |
comparison
equal
deleted
inserted
replaced
| 6266:6164849469f1 | 6267:ff7d6ee9db20 |
|---|---|
| 427 if any_match then | 427 if any_match then |
| 428 local push_publish = st.message({ to = push_info.service, from = module.host, id = uuid.generate() }) | 428 local push_publish = st.message({ to = push_info.service, from = module.host, id = uuid.generate() }) |
| 429 :add_child(push_notification_payload):up() | 429 :add_child(push_notification_payload):up() |
| 430 | 430 |
| 431 -- TODO: watch for message error replies and count or something | 431 -- TODO: watch for message error replies and count or something |
| 432 module:log("info", "publish", push_publish) | |
| 433 module:send(push_publish) | 432 module:send(push_publish) |
| 434 pushes = pushes + 1 | 433 pushes = pushes + 1 |
| 435 end | 434 end |
| 436 end | 435 end |
| 437 end | 436 end |