aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-10-12 16:24:58 +0200
committerMario Vavti <mario@mariovavti.com>2024-10-12 16:24:58 +0200
commita305c20e0843e3a0baa62d6ea21d2735e366ea52 (patch)
treed1daf452e534d71f34eb10b53905ba54eedbd656 /include
parent12b24e0e5e3698eba69a6bbf93aba075bddc5707 (diff)
parente2cfe245b79cb08930c0ba2258c26803361d4b2a (diff)
downloadvolse-hubzilla-a305c20e0843e3a0baa62d6ea21d2735e366ea52.tar.gz
volse-hubzilla-a305c20e0843e3a0baa62d6ea21d2735e366ea52.tar.bz2
volse-hubzilla-a305c20e0843e3a0baa62d6ea21d2735e366ea52.zip
Merge branch 'dev' into containers
Diffstat (limited to 'include')
-rw-r--r--include/items.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 60f5cbe9c..ed528f89d 100644
--- a/include/items.php
+++ b/include/items.php
@@ -3224,7 +3224,9 @@ function start_delivery_chain($channel, $item, $item_id, $parent, $group = false
}
else {
- $arr['uuid'] = item_message_id();
+ // To prevent duplicates from possible clones of the forum/group,
+ // will create a v5 UUID of the source item mid.
+ $arr['uuid'] = uuid_from_url($item['mid']);
$arr['mid'] = z_root() . '/item/' . $arr['uuid'];
$arr['parent_mid'] = $arr['mid'];
}