diff options
author | friendica <info@friendica.com> | 2014-10-10 14:45:18 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-10-10 14:45:18 -0700 |
commit | b5f91d7b4016831f3b62c77450c365d872bba169 (patch) | |
tree | d9086192dda4dae7179fa4929e837add14400207 | |
parent | 82d4d156ead2c85fe2c4af9da49837d53ebb3438 (diff) | |
download | volse-hubzilla-b5f91d7b4016831f3b62c77450c365d872bba169.tar.gz volse-hubzilla-b5f91d7b4016831f3b62c77450c365d872bba169.tar.bz2 volse-hubzilla-b5f91d7b4016831f3b62c77450c365d872bba169.zip |
missing source route after edit
-rwxr-xr-x | include/items.php | 2 | ||||
-rw-r--r-- | include/zot.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index e64e91dc3..c4ae948b8 100755 --- a/include/items.php +++ b/include/items.php @@ -2415,7 +2415,7 @@ function item_store_update($arr,$allow_exec = false) { $arr['commented'] = $orig[0]['commented']; $arr['received'] = datetime_convert(); $arr['changed'] = datetime_convert(); - + $arr['route'] = ((array_key_exists('route',$arr)) ? trim($arr['route']) : $orig[0]['route']); $arr['diaspora_meta'] = ((x($arr,'diaspora_meta')) ? $arr['diaspora_meta'] : $orig[0]['diaspora_meta']); $arr['location'] = ((x($arr,'location')) ? notags(trim($arr['location'])) : $orig[0]['location']); $arr['coord'] = ((x($arr,'coord')) ? notags(trim($arr['coord'])) : $orig[0]['coord']); diff --git a/include/zot.php b/include/zot.php index 1706153dd..21e284c77 100644 --- a/include/zot.php +++ b/include/zot.php @@ -1486,6 +1486,8 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false) { 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']); |