aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
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
commit9487ed1cca061b54343b5307c48feebfb7a47fa1 (patch)
treec30d502445547d631bc11f334603d910a809af81 /plugins/mod_pubsub
parentd77fe6c4d39d88756c5a126dbc081dd27957b6a4 (diff)
downloadprosody-9487ed1cca061b54343b5307c48feebfb7a47fa1.tar.gz
prosody-9487ed1cca061b54343b5307c48feebfb7a47fa1.zip
pubsub.lib: ignore FORM_TYPE field in config_from_xep0060
Diffstat (limited to 'plugins/mod_pubsub')
-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