Avoid duplicated filed posts
This commit is contained in:
parent
39e4ab89fa
commit
7a51a7f6c6
|
@ -419,7 +419,14 @@ function conversation(App $a, array $items, $mode, $update, $preview = false, $o
|
||||||
|
|
||||||
$tpl = 'search_item.tpl';
|
$tpl = 'search_item.tpl';
|
||||||
|
|
||||||
|
$uriids = [];
|
||||||
|
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
|
if (in_array($item['uri-id'], $uriids)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$uriids[] = $item['uri-id'];
|
||||||
|
|
||||||
if (!visible_activity($item)) {
|
if (!visible_activity($item)) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user