aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-03-31 16:30:04 -0700
committerfriendica <info@friendica.com>2014-03-31 16:30:04 -0700
commit03c53502cb7770d9994776d9a2818c4621befb66 (patch)
tree70e3fb10379dfb3adc324aa289dca73e80bf4856 /include/zot.php
parent57a9ba4574e61a803c0a732135fe457733901850 (diff)
parent421df717fecba69a952167ceb8cb4e58f0b4db39 (diff)
downloadvolse-hubzilla-03c53502cb7770d9994776d9a2818c4621befb66.tar.gz
volse-hubzilla-03c53502cb7770d9994776d9a2818c4621befb66.tar.bz2
volse-hubzilla-03c53502cb7770d9994776d9a2818c4621befb66.zip
Merge branch 'route'
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php
index b23c18bdb..48240d5aa 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -1452,6 +1452,7 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false) {
}
$xyz = event_store($ev);
+ add_source_route($xyz,$sender['hash']);
$result = array($d['hash'],'event processed',$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>');
continue;
@@ -1476,6 +1477,8 @@ function process_delivery($sender,$arr,$deliveries,$relay,$public = false) {
$arr['uid'] = $channel['channel_id'];
$item_result = item_store($arr);
$item_id = $item_result['item_id'];
+ add_source_route($item_id,$sender['hash']);
+
$result[] = array($d['hash'],(($item_id) ? 'posted' : 'storage failed:' . $item_result['message']),$channel['channel_name'] . ' <' . $channel['channel_address'] . '@' . get_app()->get_hostname() . '>');
}