changeset 13083 | e7a5e5a0dc02 |
parent 12979 | d10957394a3c |
parent 13082 | 6da83deb8d7f |
--- a/util/error.lua Wed Apr 19 11:14:11 2023 +0200 +++ b/util/error.lua Wed Apr 19 11:42:36 2023 +0200 @@ -141,7 +141,7 @@ local error_tag = stanza:get_child("error"); context = context or {}; context.stanza = stanza; - context.by = error_tag.attr.by or stanza.attr.from; + context.by = error_tag and error_tag.attr.by or stanza.attr.from; local uri; if condition == "gone" or condition == "redirect" then