Mercurial > prosody-hg
diff util/error.lua @ 13079:e7a5e5a0dc02
Merge 0.12->trunk
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 19 Apr 2023 11:42:36 +0200 |
| parents | d10957394a3c 6da83deb8d7f |
| children |
line wrap: on
line diff
--- 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
