aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-06-24 16:56:23 -0700
committerzotlabs <mike@macgirvin.com>2018-06-24 16:56:23 -0700
commit86e93664d02cecb2fc27584135961cf121f283b9 (patch)
tree3e983106dd7d38e86b2ec427f3b15aa8993429a0 /include
parent3716f4e80928f160965dde6fa475e9fa3155b25a (diff)
downloadvolse-hubzilla-86e93664d02cecb2fc27584135961cf121f283b9.tar.gz
volse-hubzilla-86e93664d02cecb2fc27584135961cf121f283b9.tar.bz2
volse-hubzilla-86e93664d02cecb2fc27584135961cf121f283b9.zip
remote_self wasn't working correctly
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/items.php b/include/items.php
index 8e7a8df34..ab42b7cd3 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2961,10 +2961,12 @@ function start_delivery_chain($channel, $item, $item_id, $parent) {
$rewrite_author = intval(get_abconfig($channel['channel_id'],$item['owner_xchan'],'system','rself'));
if($rewrite_author) {
- $item['author_xchan'] = $item['owner_xchan'];
- if($item['owner']) {
- $item['author'] = $item['owner'];
- }
+ $item['author_xchan'] = $channel['channel_hash'];
+
+ $r = q("update item set author_xchan = '%s' where id = %d",
+ dbesc($item['author_xchan']),
+ intval($item_id)
+ );
}
}
@@ -3025,7 +3027,6 @@ function start_delivery_chain($channel, $item, $item_id, $parent) {
intval($item_id)
);
-
if($r)
Zotlabs\Daemon\Master::Summon(array('Notifier','tgroup',$item_id));
else {