Mercurial > prosody-hg
comparison plugins/mod_pubsub/pubsub.lib.lua @ 8323:f2c1d65f706b
mod_pubsub: Don't log private data
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 15 Oct 2017 11:54:24 +0200 |
| parents | fe5eaf4ed631 |
| children | 58d228da618f |
comparison
equal
deleted
inserted
replaced
| 8322:cd15fc505b62 | 8323:f2c1d65f706b |
|---|---|
| 372 return nil; | 372 return nil; |
| 373 end | 373 end |
| 374 return create_encapsulating_item(id, payload, publisher, expose_publisher); | 374 return create_encapsulating_item(id, payload, publisher, expose_publisher); |
| 375 end | 375 end |
| 376 function get_set:set(key, value) -- luacheck: ignore 212/self | 376 function get_set:set(key, value) -- luacheck: ignore 212/self |
| 377 module:log("debug", "Set item %s to %s for %s", key, value, node); | |
| 378 local data, err; | 377 local data, err; |
| 379 if value ~= nil then | 378 if value ~= nil then |
| 380 local publisher = value.attr.publisher; | 379 local publisher = value.attr.publisher; |
| 381 local payload = value.tags[1]; | 380 local payload = value.tags[1]; |
| 382 data, err = archive:append(user, key, payload, time_now(), publisher); | 381 data, err = archive:append(user, key, payload, time_now(), publisher); |
