From 9618c729d38f2893c77096e5d76ec334694d0cc2 Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sat, 27 Feb 2021 04:14:26 -0700 Subject: [PATCH] Strip duplicate messages from threads in newsportal --- Rocksolid_Light/rocksolid/lib/thread.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Rocksolid_Light/rocksolid/lib/thread.inc.php b/Rocksolid_Light/rocksolid/lib/thread.inc.php index 68906d3..cba58c2 100644 --- a/Rocksolid_Light/rocksolid/lib/thread.inc.php +++ b/Rocksolid_Light/rocksolid/lib/thread.inc.php @@ -1181,6 +1181,9 @@ function thread_getsubthreadids($id,$thread) { thread_getsubthreadids_recursive($answer)); } } + $answers = array_map('json_encode', $answers); + $answers = array_unique($answers); + $answers = array_map('json_decode', $answers); return $answers; }