aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-03-10 20:44:20 +0000
committerMario <mario@mariovavti.com>2021-03-10 20:44:20 +0000
commit260c518562f6402fea563cbd6988efbd05abd10a (patch)
tree588025dc5725c8947d53637c8b13ef5c18bd245e /include/items.php
parent689603de8240619f801daeb56c0de0197f66cedd (diff)
downloadvolse-hubzilla-260c518562f6402fea563cbd6988efbd05abd10a.tar.gz
volse-hubzilla-260c518562f6402fea563cbd6988efbd05abd10a.tar.bz2
volse-hubzilla-260c518562f6402fea563cbd6988efbd05abd10a.zip
if rewriting the mid also rewrite the llink
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index c6a5f40a6..d781ff8b8 100644
--- a/include/items.php
+++ b/include/items.php
@@ -3253,6 +3253,7 @@ function start_delivery_chain($channel, $item, $item_id, $parent, $group = false
$item['mid'] = z_root() . '/item/' . $item['uuid'];
$item['parent_mid'] = $item['mid'];
$item['thr_parent'] = $item['mid'];
+ $item['llink'] = z_root() . '/display/' . gen_link_id($item['mid']);
}
$r = q("UPDATE item SET author_xchan = '%s', mid = '%s', parent_mid = '%s', thr_parent = '%s' WHERE id = %d",