Software /
code /
prosody-modules
Changeset
3849:11c34e97fe1a
mod_rest: Fix iteration over disco#info features
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 25 Jan 2020 00:19:11 +0100 |
parents | 3848:1b9834500123 |
children | 3850:8d13b9c9ba75 |
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 Sat Jan 25 00:17:44 2020 +0100 +++ b/mod_rest/jsonmap.lib.lua Sat Jan 25 00:19:11 2020 +0100 @@ -65,7 +65,7 @@ end end if s.features then - for feature in ipairs(s.features) do + for _, feature in ipairs(s.features) do disco:tag("feature", { var = feature }):up(); end end