diff mod_pubsub_pivotaltracker/mod_pubsub_pivotaltracker.lua @ 1343:7dbde05b48a9

all the things: Remove trailing whitespace
author Florian Zeitz <florob@babelmonkeys.de>
date Tue, 11 Mar 2014 18:44:01 +0100
parents 9922e8cdf4a4
children
line wrap: on
line diff
--- a/mod_pubsub_pivotaltracker/mod_pubsub_pivotaltracker.lua	Mon Mar 10 08:22:58 2014 +0000
+++ b/mod_pubsub_pivotaltracker/mod_pubsub_pivotaltracker.lua	Tue Mar 11 18:44:01 2014 +0100
@@ -32,23 +32,23 @@
 
 function handle_POST(event)
 	local data = lom.parse(event.request.body);
-	
+
 	if not data then
 		return "Invalid XML. From you of all people...";
 	end
-	
+
 	data = stanza_from_lom(data);
-	
+
 	if data.name ~= "activity" then
 		return "Unrecognised XML element: "..data.name;
 	end
-	
+
 	local activity_id = data:get_child("id"):get_text();
 	local description = data:get_child("description"):get_text();
 	local author_name = data:get_child("author"):get_text();
 	local story = data:get_child("stories"):get_child("story");
 	local story_link = story:get_child("url"):get_text();
-	
+
 	local ok, err = pubsub_service:publish(node, true, "activity", st.stanza("item", { id = "activity", xmlns = "http://jabber.org/protocol/pubsub" })
 		:tag("entry", { xmlns = "http://www.w3.org/2005/Atom" })
 			:tag("id"):text(activity_id):up()
@@ -59,7 +59,7 @@
 				:tag("name"):text(author_name):up()
 				:up()
 	);
-	
+
 	module:log("debug", "Handled POST: \n%s\n", tostring(event.request.body));
 	return "Thank you Pivotal!";
 end