Strip duplicate messages from threads in newsportal

This commit is contained in:
Retro_Guy 2021-02-27 04:14:26 -07:00
parent c107f24d3a
commit 9618c729d3
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}