aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-26 22:24:08 -0800
committerfriendica <info@friendica.com>2013-01-26 22:24:08 -0800
commit0c67ce57e33bbc0d93d2d82d2c0db840b724d72e (patch)
tree9bfa4eba81b21466ccc9bc3846fb57d24dd64e94 /include/items.php
parent3e096e4a42b7baeb78d4c080bc331efd8c406f0b (diff)
downloadvolse-hubzilla-0c67ce57e33bbc0d93d2d82d2c0db840b724d72e.tar.gz
volse-hubzilla-0c67ce57e33bbc0d93d2d82d2c0db840b724d72e.tar.bz2
volse-hubzilla-0c67ce57e33bbc0d93d2d82d2c0db840b724d72e.zip
ensure zot messages with 'deleted' items set 'created' as a fallback to ensure the message isn't tossed.
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index c6a8c195f..86bd199e3 100755
--- a/include/items.php
+++ b/include/items.php
@@ -546,7 +546,8 @@ function encode_item($item) {
if($item['item_restrict'] & ITEM_DELETED) {
$x['message_id'] = $item['uri'];
- $x['flags'] = array('deleted');
+ $x['created'] = $item['created'];
+ $x['flags'] = array('deleted');
return $x;
}