From ce6b49868f28464b4c205d68095e89ace22bb433 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Sat, 4 Apr 2020 19:52:13 -0500 Subject: [PATCH] Return node in reply to disco#info query https://xmpp.org/extensions/xep-0030.html#info-nodes requires that *if* the query includes an optional node, it should be included in the response. --- sgx-catapult.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sgx-catapult.rb b/sgx-catapult.rb index af4d0aaac9d3e101334009eb784e7a3c7bdb7fbd..002a9cd2664fe9c6de4198175fba2ba4f6064e1a 100755 --- a/sgx-catapult.rb +++ b/sgx-catapult.rb @@ -663,6 +663,7 @@ module SGXcatapult #puts "XR[node]: #{xpath_result[0]['node']}" msg = i.reply + msg.node = i.node msg.identities = user_cap_identities msg.features = user_cap_features @@ -673,6 +674,7 @@ module SGXcatapult # respond to capabilities request for sgx-catapult itself msg = i.reply + msg.node = i.node msg.identities = [{ name: 'Soprani.ca Gateway to XMPP - Catapult', type: 'sms', category: 'gateway'