aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php5
-rw-r--r--include/zot.php2
2 files changed, 1 insertions, 6 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'];
diff --git a/include/zot.php b/include/zot.php
index 19512c1ec..f9d527b33 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1412,7 +1412,7 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false) {
}
if((! perm_is_allowed($channel['channel_id'],$sender['hash'],$perm)) && (! $tag_delivery) && (! $public)) {
- logger("permission denied for delivery {$channel['channel_id']}");
+ logger("permission denied for delivery to channel {$channel['channel_id']} {$channel['channel_address']}");
$result[] = array($d['hash'],'permission denied',$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>');
continue;
}