Changeset

5419:e28fca8faf62

mod_pubsub: Don't send current items to new subscribers (I don't know why we did)
author Matthew Wild <mwild1@gmail.com>
date Wed, 03 Apr 2013 13:51:59 +0100
parents 5418:7f270fbf3361
children 5420:706053e3f9f5 5421:a3f0fe9431cf
files plugins/mod_pubsub.lua
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pubsub.lua	Wed Apr 03 13:40:40 2013 +0100
+++ b/plugins/mod_pubsub.lua	Wed Apr 03 13:51:59 2013 +0100
@@ -164,16 +164,6 @@
 		reply = pubsub_error_reply(stanza, ret);
 	end
 	origin.send(reply);
-	if ok then
-		-- Send all current items
-		local ok, items = service:get_items(node, stanza.attr.from);
-		if items then
-			local jids = { [jid] = options or true };
-			for id, item in pairs(items) do
-				service.config.broadcaster("items", node, jids, item);
-			end
-		end
-	end
 end
 
 function handlers.set_unsubscribe(origin, stanza, unsubscribe)