aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-10 15:17:32 -0700
committerfriendica <info@friendica.com>2014-10-10 15:17:32 -0700
commitf26cd5a636d0a1de4cef66d26da505e8a29b1b40 (patch)
tree1d7ce0b461ba16a1538488be05f9f90d52de5e84 /include
parentb5f91d7b4016831f3b62c77450c365d872bba169 (diff)
downloadvolse-hubzilla-f26cd5a636d0a1de4cef66d26da505e8a29b1b40.tar.gz
volse-hubzilla-f26cd5a636d0a1de4cef66d26da505e8a29b1b40.tar.bz2
volse-hubzilla-f26cd5a636d0a1de4cef66d26da505e8a29b1b40.zip
ah yes, the redundant relay run was for the benefit of wall-to-wall posts issue #633
Diffstat (limited to 'include')
-rw-r--r--include/zot.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/zot.php b/include/zot.php
index 21e284c77..fda2a2bea 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1480,18 +1480,17 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false) {
intval($channel['channel_id'])
);
if($r) {
+ $item_id = $r[0]['id'];
if($arr['edited'] > $r[0]['edited']) {
$arr['id'] = $r[0]['id'];
$arr['uid'] = $channel['channel_id'];
update_imported_item($sender,$arr,$channel['channel_id']);
$result[] = array($d['hash'],'updated',$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>',$arr['mid']);
- $item_id = $r[0]['id'];
if(! $relay)
add_source_route($item_id,$sender['hash']);
}
else {
$result[] = array($d['hash'],'update ignored',$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>',$arr['mid']);
- continue;
}
}
else {