1
0
Fork 0

Merge pull request #6977 from annando/fix-reshare

Fix: Only use reshare information for the top level post
This commit is contained in:
Philipp 2019-04-05 11:44:01 +02:00 committed by GitHub
commit bd13a73b2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -802,7 +802,7 @@ function conversation_fetch_comments($thread_items) {
$created = ''; $created = '';
while ($row = Item::fetch($thread_items)) { 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']]; $actor = ['link' => $row['author-link'], 'avatar' => $row['author-avatar'], 'name' => $row['author-name']];
$created = $row['created']; $created = $row['created'];
} }