Mercurial > prosody-modules
changeset 3848:1b9834500123
mod_rest: Fix iteration over disco#info identities
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 25 Jan 2020 00:17:44 +0100 |
parents | ffc64d285a96 |
children | 11c34e97fe1a |
files | mod_rest/jsonmap.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_rest/jsonmap.lib.lua Sun Jan 19 19:31:43 2020 +0100 +++ b/mod_rest/jsonmap.lib.lua Sat Jan 25 00:17:44 2020 +0100 @@ -60,7 +60,7 @@ if type(s) == "table" then disco.attr.node = tostring(s.node); if s.identities then - for identity in ipairs(s.identities) do + for _, identity in ipairs(s.identities) do disco:tag("identity", { category = identity[1], type = identity[2] }):up(); end end