Fix: Only use reshare information for the top level post
This commit is contained in:
parent
6be2951b4e
commit
4a30490ac9
1 changed files with 1 additions and 1 deletions
|
@ -802,7 +802,7 @@ function conversation_fetch_comments($thread_items) {
|
|||
$created = '';
|
||||
|
||||
while ($row = Item::fetch($thread_items)) {
|
||||
if (($row['verb'] == ACTIVITY2_ANNOUNCE) && !empty($row['contact-uid']) && ($row['created'] > $created)) {
|
||||
if (($row['verb'] == ACTIVITY2_ANNOUNCE) && !empty($row['contact-uid']) && ($row['created'] > $created) && ($row['thr-parent'] == $row['parent-uri'])) {
|
||||
$actor = ['link' => $row['author-link'], 'avatar' => $row['author-avatar'], 'name' => $row['author-name']];
|
||||
$created = $row['created'];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue