Changeset

2253:97ebd28a8a75

mod_cloud_notify: Apply pre-serialization to publish-options
author Kim Alvefur <zash@zash.se>
date Tue, 26 Jul 2016 13:29:51 +0200 (2016-07-26)
parents 2252:a96f2d0f8750
children 2254:122cb5f4930f
files mod_cloud_notify/mod_cloud_notify.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_cloud_notify/mod_cloud_notify.lua	Tue Jul 26 13:08:44 2016 +0200
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Tue Jul 26 13:29:51 2016 +0200
@@ -48,7 +48,7 @@
 		jid = push_jid;
 		node = push_node;
 		count = 0;
-		options = publish_options;
+		options = publish_options and st.preserialize(publish_options);
 	};
 	local ok, err = push_enabled:set(origin.username, user_push_services);
 	if not ok then
@@ -116,7 +116,7 @@
 		push_publish:up(); -- / publish
 		push_publish:up(); -- / pubsub
 		if push_info.options then
-			push_publish:tag("publish-options"):add_child(push_info.options);
+			push_publish:tag("publish-options"):add_child(st.deserialize(push_info.options));
 		end
 		module:send(push_publish);
 	end