aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2024-10-12 15:58:00 +0200
committerMario Vavti <mario@mariovavti.com>2024-10-12 15:58:00 +0200
commite2cfe245b79cb08930c0ba2258c26803361d4b2a (patch)
tree261772ca3894aacf97bc861ee58fbfbd2b741466 /include/items.php
parentaee396421ad3bbfbabebb252c5b1d75fdd82ec78 (diff)
downloadvolse-hubzilla-e2cfe245b79cb08930c0ba2258c26803361d4b2a.tar.gz
volse-hubzilla-e2cfe245b79cb08930c0ba2258c26803361d4b2a.tar.bz2
volse-hubzilla-e2cfe245b79cb08930c0ba2258c26803361d4b2a.zip
Fix duplicate posts from forum clones
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index 23222892f..876c20099 100644
--- a/include/items.php
+++ b/include/items.php
@@ -3196,7 +3196,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'];
}