Merge pull request #10712 from annando/duplicates

Avoid duplicated filed posts
This commit is contained in:
Hypolite Petovan 2021-09-14 17:39:45 -04:00 committed by GitHub
commit 2ed509f138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -419,7 +419,14 @@ function conversation(App $a, array $items, $mode, $update, $preview = false, $o
$tpl = 'search_item.tpl';
$uriids = [];
foreach ($items as $item) {
if (in_array($item['uri-id'], $uriids)) {
continue;
}
$uriids[] = $item['uri-id'];
if (!visible_activity($item)) {
continue;