Mercurial > prosody-modules
changeset 3468:228e59bee8ad
mod_storage_muc_log: Return 'with' property for items (API conformance)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 19 Feb 2019 03:15:05 +0100 |
parents | 741886d5d84f |
children | 85b849d5ec88 |
files | mod_storage_muc_log/mod_storage_muc_log.lua |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_storage_muc_log/mod_storage_muc_log.lua Fri Feb 15 12:28:12 2019 +0100 +++ b/mod_storage_muc_log/mod_storage_muc_log.lua Tue Feb 19 03:15:05 2019 +0100 @@ -135,12 +135,13 @@ if item then time = item.attr.time; item = item.tags[1]; + local with = st_with(item); if (today >= start_date or time >= start_time) and (today <= end_date or time <= end_time) and - (not query_with or query_with == st_with(item)) and + (not query_with or query_with == with) and item:get_child_text("alreadyJoined") ~= "true" then matches = matches + 1; - coroutine.yield(today.."_"..i, item, parse_silly(today, time)); + coroutine.yield(today.."_"..i, item, parse_silly(today, time), with); if query_limit and matches >= query_limit then return; end