diff options
author | Mario <mario@mariovavti.com> | 2024-10-12 13:59:12 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-10-12 13:59:12 +0000 |
commit | c70bd08c10405c3a3b55a3d1a49c931b2fefbc3d (patch) | |
tree | 36c6918b51cb1a903324b0fa42b8f95f8e27adae | |
parent | 69109a558b139922c7498c05517ab15352b31384 (diff) | |
download | volse-hubzilla-c70bd08c10405c3a3b55a3d1a49c931b2fefbc3d.tar.gz volse-hubzilla-c70bd08c10405c3a3b55a3d1a49c931b2fefbc3d.tar.bz2 volse-hubzilla-c70bd08c10405c3a3b55a3d1a49c931b2fefbc3d.zip |
Fix duplicate posts from forum clones
(cherry picked from commit e2cfe245b79cb08930c0ba2258c26803361d4b2a)
Co-authored-by: Mario Vavti <mario@mariovavti.com>
-rw-r--r-- | include/items.php | 4 |
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']; } |