aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-27 13:43:43 -0800
committerfriendica <info@friendica.com>2013-01-27 13:43:43 -0800
commitbbcbd504cf5a69d42683daac2b7d340ca2bd8d4e (patch)
treec1bae252c36cc64b767eb66267627d8cc6e3e1f5 /include
parent493f68ca490f8c06b74c4eff919e8a7ea4dc9818 (diff)
downloadvolse-hubzilla-bbcbd504cf5a69d42683daac2b7d340ca2bd8d4e.tar.gz
volse-hubzilla-bbcbd504cf5a69d42683daac2b7d340ca2bd8d4e.tar.bz2
volse-hubzilla-bbcbd504cf5a69d42683daac2b7d340ca2bd8d4e.zip
help deletions along
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 86bd199e3..3e296177a 100755
--- a/include/items.php
+++ b/include/items.php
@@ -548,6 +548,8 @@ function encode_item($item) {
$x['message_id'] = $item['uri'];
$x['created'] = $item['created'];
$x['flags'] = array('deleted');
+ $x['owner'] = encode_item_xchan($item['owner']);
+ $x['author'] = encode_item_xchan($item['author']);
return $x;
}
@@ -4068,6 +4070,8 @@ function drop_item($id,$interactive = true) {
foreach($items as $i)
delete_item_lowlevel($i);
}
+ else
+ delete_item_lowlevel($item);
if(! $interactive)
return 1;