Software /
code /
prosody
Changeset
13475:c14659710747
mod_server_contact_info: Sort form fields to please scansion
The unstable hash table order caused the tests to fail and I don't know
how to tell scansion to ignore the order.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 06 Apr 2024 16:51:27 +0200 |
parents | 13474:05c1098084cd |
children | 13476:b9267ce1b183 |
files | plugins/mod_server_contact_info.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_server_contact_info.lua Sat Apr 06 14:31:28 2024 +0200 +++ b/plugins/mod_server_contact_info.lua Sat Apr 06 16:51:27 2024 +0200 @@ -7,6 +7,7 @@ -- local array = require "prosody.util.array"; +local it = require "prosody.util.iterators"; local jid = require "prosody.util.jid"; local url = require "socket.url"; @@ -32,7 +33,7 @@ local fields = {}; -for key, field_var in pairs(address_types) do +for key, field_var in it.sorted_pairs(address_types) do if contact_config[key] then table.insert(fields, { type = "list-multi";