--- a/mod_rest/mod_rest.lua Sun Mar 07 01:35:43 2021 +0100
+++ b/mod_rest/mod_rest.lua Sun Mar 07 21:02:18 2021 +0100
@@ -241,7 +241,7 @@
end
local to = jid.prep(payload.attr.to);
- if not to then
+ if payload.attr.to and not to then
return post_errors.new("to");
end