Kim Alvefur <zash@zash.se> [Thu, 28 Oct 2021 13:02:59 +0200] rev 11885
util.dataforms: Encode size attributes as integers in XEP-0221 media element
Otherwise very large fields would be serialized in e notation
Kim Alvefur <zash@zash.se> [Thu, 28 Oct 2021 13:00:24 +0200] rev 11884
util.dataforms: Ensure larger integers are serialized as such
Assumes that most number fields are integers, as most numeric types
listed in XEP-0122 are, as are all such fields in Prosody as of this.
Otherwise %g produces something like 1.1259e+15
Kim Alvefur <zash@zash.se> [Tue, 26 Oct 2021 15:41:54 +0200] rev 11883
util.dataforms: Scope integer handling tests
So they're separate from the datetime tests, and any future validation
tests
Kim Alvefur <zash@zash.se> [Tue, 26 Oct 2021 15:17:49 +0200] rev 11882
util.dataforms: Turn number values into timestamps for datetime fields
Makes it symmetric with parsing.
Kim Alvefur <zash@zash.se> [Tue, 26 Oct 2021 15:15:57 +0200] rev 11881
util.dataforms: Coerce number values for boolean fields
Makes more sense than coercing to a string, which would always be
truthy.
Kim Alvefur <zash@zash.se> [Tue, 26 Oct 2021 13:35:04 +0200] rev 11880
mod_muc_mam: Use util.dataforms timestamp validation
Kim Alvefur <zash@zash.se> [Tue, 26 Oct 2021 13:31:40 +0200] rev 11879
mod_mam: Use util.dataforms timestamp validation
Kim Alvefur <zash@zash.se> [Mon, 25 Oct 2021 21:45:46 +0200] rev 11878
util.dataforms: Add support for datetime field types via XEP-0122
Kim Alvefur <zash@zash.se> [Mon, 25 Oct 2021 21:45:06 +0200] rev 11877
mod_http_file_share: Move number coercion into util.dataforms
Kim Alvefur <zash@zash.se> [Mon, 25 Oct 2021 21:43:23 +0200] rev 11876
mod_admin_adhoc: Move number coercion into util.dataforms
Internal use of XEP-0122 to shift the responsibility for converting
numbers to strings.