mod_cloud_notify: Store data for corret user (origin is not correct here)
authorKim Alvefur <zash@zash.se>
Thu, 28 Jul 2016 13:13:08 +0200
changeset 2265 a276fdabf768
parent 2264 8cc8e964812b
child 2266 19fbf190b5a7
mod_cloud_notify: Store data for corret user (origin is not correct here)
mod_cloud_notify/mod_cloud_notify.lua
--- a/mod_cloud_notify/mod_cloud_notify.lua	Thu Jul 28 12:37:20 2016 +0200
+++ b/mod_cloud_notify/mod_cloud_notify.lua	Thu Jul 28 13:13:08 2016 +0200
@@ -127,7 +127,7 @@
 		end
 		module:send(push_publish);
 	end
-	push_enabled:set(origin.username, user_push_services);
+	push_enabled:set(node, user_push_services);
 end
 
 -- publish on offline message