changeset 4644:bbf9e36db3a9

mod_pubsub_text_interface: Fix move quick response tags out of <body> Seems there's an API change between 0.11.x and trunk changing the behavior of :body(), so previously it worked in trunk but broke in 0.11
author Kim Alvefur <zash@zash.se>
date Fri, 13 Aug 2021 00:57:33 +0200
parents df09f9ce0b1b
children 25ce28711fac
files mod_pubsub_text_interface/mod_pubsub_text_interface.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_pubsub_text_interface/mod_pubsub_text_interface.lua	Thu Aug 12 11:05:43 2021 +0200
+++ b/mod_pubsub_text_interface/mod_pubsub_text_interface.lua	Fri Aug 13 00:57:33 2021 +0200
@@ -33,7 +33,7 @@
 	command = (command or body):lower();
 
 	if command == "help" then
-		reply:body(help);
+		reply:body(help):up();
 		reply:tag("response", { xmlns = xmlns_quick_resp, value = "list", }):up();
 		reply:tag("response", { xmlns = xmlns_quick_resp, value = "subscriptions", }):up();
 	elseif command == "list" then