From a2a2ae2dd20ecb6e9631b804f9d3bb16e2054c3d Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 28 Feb 2013 18:20:42 -0800 Subject: this might make edits update across the wire, or it might not --- include/zot.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/zot.php') diff --git a/include/zot.php b/include/zot.php index b72e966bf..6951130bc 100644 --- a/include/zot.php +++ b/include/zot.php @@ -921,8 +921,10 @@ function process_delivery($sender,$arr,$deliveries,$relay) { intval($channel['channel_id']) ); if($r) { - if($arr['edited'] > $r[0]['edited']) + if($arr['edited'] > $r[0]['edited']) { + $arr['id'] = $r[0]['id']; update_imported_item($sender,$arr,$channel['channel_id']); + } $result[] = array($d['hash'],'updated'); $item_id = $r[0]['id']; } @@ -950,7 +952,8 @@ function process_delivery($sender,$arr,$deliveries,$relay) { function update_imported_item($sender,$item,$uid) { -// FIXME + + item_store_update($arr); logger('update_imported_item'); } -- cgit v1.2.3