aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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