ah yes, the redundant relay run was for the benefit of wall-to-wall posts issue #633
This commit is contained in:
parent
b5f91d7b40
commit
f26cd5a636
@ -1480,18 +1480,17 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false) {
|
|||||||
intval($channel['channel_id'])
|
intval($channel['channel_id'])
|
||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
|
$item_id = $r[0]['id'];
|
||||||
if($arr['edited'] > $r[0]['edited']) {
|
if($arr['edited'] > $r[0]['edited']) {
|
||||||
$arr['id'] = $r[0]['id'];
|
$arr['id'] = $r[0]['id'];
|
||||||
$arr['uid'] = $channel['channel_id'];
|
$arr['uid'] = $channel['channel_id'];
|
||||||
update_imported_item($sender,$arr,$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']);
|
$result[] = array($d['hash'],'updated',$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>',$arr['mid']);
|
||||||
$item_id = $r[0]['id'];
|
|
||||||
if(! $relay)
|
if(! $relay)
|
||||||
add_source_route($item_id,$sender['hash']);
|
add_source_route($item_id,$sender['hash']);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$result[] = array($d['hash'],'update ignored',$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>',$arr['mid']);
|
$result[] = array($d['hash'],'update ignored',$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>',$arr['mid']);
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user