Fix multiple display problems in conversations
This commit is contained in:
parent
d6c25dc63c
commit
e940b1f047
1 changed files with 5 additions and 1 deletions
|
@ -757,6 +757,10 @@ function conversation_add_children(array $parents, $block_authors, $order, $uid)
|
|||
$items = [];
|
||||
|
||||
while ($row = Post::fetch($thread_items)) {
|
||||
if (!empty($items[$row['uri-id']]) && ($row['uid'] == 0)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($max_comments > 0) {
|
||||
if (($row['gravity'] == GRAVITY_COMMENT) && (++$commentcounter[$row['parent-uri-id']] > $max_comments)) {
|
||||
continue;
|
||||
|
@ -765,7 +769,7 @@ function conversation_add_children(array $parents, $block_authors, $order, $uid)
|
|||
continue;
|
||||
}
|
||||
}
|
||||
$items[] = conversation_add_row_information($row, $activities[$row['uri-id']] ?? []);
|
||||
$items[$row['uri-id']] = conversation_add_row_information($row, $activities[$row['uri-id']] ?? []);
|
||||
}
|
||||
|
||||
DBA::close($thread_items);
|
||||
|
|
Loading…
Reference in a new issue