Diff

plugins/mod_pubsub.lua @ 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
parent 5320:518d864b2ab8
child 5443:92615cfa2270
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)