aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Item.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2021-07-16 12:04:31 +0200
committerMario Vavti <mario@mariovavti.com>2021-07-16 12:04:31 +0200
commit3051e2c268f9a85fd70b69c7a62084755b28f7af (patch)
tree29e6b3615e9e9a571d7adc566eec683eff812353 /Zotlabs/Module/Item.php
parentd7489e3913d263c8e6ea022d06244cedae6f2582 (diff)
downloadvolse-hubzilla-3051e2c268f9a85fd70b69c7a62084755b28f7af.tar.gz
volse-hubzilla-3051e2c268f9a85fd70b69c7a62084755b28f7af.tar.bz2
volse-hubzilla-3051e2c268f9a85fd70b69c7a62084755b28f7af.zip
redirect to the local item instead of the item at the primary location if we deal with a wall item
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r--Zotlabs/Module/Item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index 8c9bf2708..0e76755a8 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -290,7 +290,7 @@ class Item extends Controller {
if (intval($xv['item_wall'])) {
$c = channelx_by_n($xv['uid']);
if ($c) {
- goaway($c['xchan_url'] . '?mid=' . gen_link_id($xv['mid']));
+ goaway(z_root() . '/channel/' . $c['channel_address'] . '?mid=' . gen_link_id($xv['mid']));
}
}
}