Diff

plugins/mod_pubsub/pubsub.lib.lua @ 9123:5d5aa1c4fe34

pubsub.lib: ignore FORM_TYPE field in config_from_xep0060
author Jonas Wielicki <jonas@wielicki.name>
date Sun, 05 Aug 2018 11:37:47 +0200
parent 9116:9f36f5c14545
child 9124:dcc490f0044d
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua	Sun Aug 05 02:01:58 2018 +0200
+++ b/plugins/mod_pubsub/pubsub.lib.lua	Sun Aug 05 11:37:47 2018 +0200
@@ -156,7 +156,7 @@
 				config_value = tonumber(config_value);
 			end
 			ret[mapped_name] = config_value;
-		elseif strict then
+		elseif strict and config_field ~= "FORM_TYPE" then
 			return nil, "unknown-field", config_field;
 		end
 	end