Strip duplicate messages from threads in newsportal
This commit is contained in:
parent
c107f24d3a
commit
9618c729d3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue