aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/pubsub.lib.lua
diff options
context:
space:
mode:
authorJonas Wielicki <jonas@wielicki.name>2018-08-05 11:37:47 +0200
committerJonas Wielicki <jonas@wielicki.name>2018-08-05 11:37:47 +0200
commit3c1fedd6d76f4e1b8be21471ab462cbd741665d3 (patch)
treec30d502445547d631bc11f334603d910a809af81 /plugins/mod_pubsub/pubsub.lib.lua
parent9c75dbe8a8c7c575f0b91af37a0fcea71c883492 (diff)
downloadprosody-3c1fedd6d76f4e1b8be21471ab462cbd741665d3.tar.gz
prosody-3c1fedd6d76f4e1b8be21471ab462cbd741665d3.zip
pubsub.lib: ignore FORM_TYPE field in config_from_xep0060
Diffstat (limited to 'plugins/mod_pubsub/pubsub.lib.lua')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index 7c796c20..3fcf5255 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -156,7 +156,7 @@ local function config_from_xep0060(config, strict)
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