Software /
code /
prosody
Diff
plugins/mod_storage_internal.lua @ 11765:1cac469b18d0
mod_storage_internal: Stop storing XEP-0091 timestamp
Should no longer be used by anything since the conversion of mod_offline
to the archive API in 0.10.0, which was 4 years ago. The line clearing
the property is left for a bit longer in case someone has very old
offline messages or archived data.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 04 Sep 2021 14:39:31 +0200 |
parent | 11278:c3907f05bed4 |
child | 12977:74b9e05af71e |
line wrap: on
line diff
--- a/plugins/mod_storage_internal.lua Fri Sep 03 17:46:55 2021 +0200 +++ b/plugins/mod_storage_internal.lua Sat Sep 04 14:39:31 2021 +0200 @@ -66,7 +66,6 @@ value.when = when; value.with = with; value.attr.stamp = datetime.datetime(when); - value.attr.stamp_legacy = datetime.legacy(when); local cache_key = jid_join(username, host, self.store); local item_count = archive_item_count_cache:get(cache_key); @@ -219,6 +218,7 @@ local with = item.with; item.key, item.when, item.with = nil, nil, nil; item.attr.stamp = nil; + -- COMPAT Stored data may still contain legacy XEP-0091 timestamp item.attr.stamp_legacy = nil; item = st.deserialize(item); return key, item, when, with; @@ -256,7 +256,6 @@ item.when = when; item.with = new_with or old_item.with; item.attr.stamp = datetime.datetime(when); - item.attr.stamp_legacy = datetime.legacy(when); items[i] = item; return datamanager.list_store(username, host, self.store, items); end