this might make edits update across the wire, or it might not

This commit is contained in:
friendica
2013-02-28 18:20:42 -08:00
parent 8275f14cea
commit a2a2ae2dd2
4 changed files with 233 additions and 3 deletions

View File

@@ -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');
}