aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-28 18:20:42 -0800
committerfriendica <info@friendica.com>2013-02-28 18:20:42 -0800
commita2a2ae2dd20ecb6e9631b804f9d3bb16e2054c3d (patch)
tree19bc20044ac587e0ba32e412f8a2188a99b3a909 /include/zot.php
parent8275f14cea622b4c5d82fba43859a1ca729c10a7 (diff)
downloadvolse-hubzilla-a2a2ae2dd20ecb6e9631b804f9d3bb16e2054c3d.tar.gz
volse-hubzilla-a2a2ae2dd20ecb6e9631b804f9d3bb16e2054c3d.tar.bz2
volse-hubzilla-a2a2ae2dd20ecb6e9631b804f9d3bb16e2054c3d.zip
this might make edits update across the wire, or it might not
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php7
1 files changed, 5 insertions, 2 deletions
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');
}