Kim Alvefur <zash@zash.se> [Wed, 17 Aug 2022 19:04:30 +0200] rev 12640
util.stanza: Add method for extracting a single attribute value
Sometimes you only care about a single attribute, but the child tag
itself may be optional, leading to needing `tag and tag.attr.foo` or
`stanza:find("tag@foo")`.
The `:find()` method is fairly complex, so avoiding it for this kind of
simpler use case is a win.
Kim Alvefur <zash@zash.se> [Mon, 15 Aug 2022 16:35:14 +0200] rev 12639
mod_time: Remove obsolete XEP-0090 support
Deprecated even before Prosody even started, obsolete for over a decade.
Kim Alvefur <zash@zash.se> [Wed, 17 Aug 2022 18:41:35 +0200] rev 12638
util.datetime: Update Teal interface description
Integers were required before, now any number should work.
Kim Alvefur <zash@zash.se> [Wed, 17 Aug 2022 18:07:31 +0200] rev 12637
util.datetime: Remove a line
No idea why the locals were declared on a line by itself. Perhaps line
length considerations? But saving 6 characters in width by adding a
whole line with 47 characters seems excessive.
This is still within the 150 character limit set by .luacheckrc
Kim Alvefur <zash@zash.se> [Sun, 14 Aug 2022 17:47:13 +0200] rev 12636
mod_time: Return sub-second precision timestamps
Because why not? Who even has this module enabled?
Kim Alvefur <zash@zash.se> [Sun, 14 Aug 2022 17:29:39 +0200] rev 12635
mod_storage_sql: Drop archive timestamp precision pending schema update
The "when" column is an INTEGER which will probably be unhappy about
storing higher precision timestamps, so we keep the older behavior for
now.
Kim Alvefur <zash@zash.se> [Sun, 14 Aug 2022 17:28:31 +0200] rev 12634
mod_mam: Store archives with sub-second precision timestamps
Changes sub-second part of example timestamp to .5 in order to avoid
floating point issues.
Some clients use timestamps when ordering messages which can lead to
messages having the same timestamp ending up in the wrong order.
It would be better to preserve the order messages are sent in, which is
the order they were stored in.
Kim Alvefur <zash@zash.se> [Sun, 14 Aug 2022 16:57:31 +0200] rev 12633
util.datetime: Add support for sub-second precision timestamps
Lua since 5.3 raises a fuss when time functions are handed a number with
a fractional part and the underlying C functions are all based on
integer seconds without support for more precision.
Kim Alvefur <zash@zash.se> [Sun, 14 Aug 2022 16:51:10 +0200] rev 12632
util.datetime: Fix argument order in tests
The expected value goes first.
Kim Alvefur <zash@zash.se> [Wed, 10 Aug 2022 15:12:00 +0200] rev 12631
util.signal: Fix name conflict in Teal interface declaration