aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-10 16:14:19 -0700
committerfriendica <info@friendica.com>2014-04-10 16:14:19 -0700
commitbf1f18e172808b0bbeb70180cd0eff305627645a (patch)
treeeccf6790ea1485038b7d3784a1b76d3adbe130f1 /include/items.php
parentc97222c2fcac5eef8d0a95db5156b99219e56d42 (diff)
downloadvolse-hubzilla-bf1f18e172808b0bbeb70180cd0eff305627645a.tar.gz
volse-hubzilla-bf1f18e172808b0bbeb70180cd0eff305627645a.tar.bz2
volse-hubzilla-bf1f18e172808b0bbeb70180cd0eff305627645a.zip
Include the entire original item when notifying other channels of deletions as it contains important routing and scope information. Previously we were only sending a couple of critical fields like the message-id, flags, and creation date. The thinking was that it is deleted, let's not resend the deleted contents anywhere. But in order to route this through the same path the original post took we really need the entire original post with all of its baggage attached.
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/items.php b/include/items.php
index af0d4d297..78166a8ab 100755
--- a/include/items.php
+++ b/include/items.php
@@ -843,12 +843,7 @@ function encode_item($item) {
}
if($item['item_restrict'] & ITEM_DELETED) {
- $x['message_id'] = $item['mid'];
- $x['created'] = $item['created'];
$x['flags'] = array('deleted');
- $x['owner'] = encode_item_xchan($item['owner']);
- $x['author'] = encode_item_xchan($item['author']);
- return $x;
}
$x['message_id'] = $item['mid'];