From: Michael Date: Wed, 28 Sep 2022 09:48:48 +0000 (+0000) Subject: Only display reshared thread starting posts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c65f78e579c9ce7bcbf8db7ddd96ff15623d0a52;p=friendica.git Only display reshared thread starting posts --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index a035d0021d..fcf177d832 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1482,7 +1482,7 @@ class Contact $contact_field = ((($contact["contact-type"] == self::TYPE_COMMUNITY) || ($contact['network'] == Protocol::MAIL)) ? 'owner-id' : 'author-id'); if ($thread_mode) { - $condition = ["((`$contact_field` = ? AND `gravity` = ?) OR (`author-id` = ? AND `gravity` = ? AND `vid` = ?)) AND " . $sql, + $condition = ["((`$contact_field` = ? AND `gravity` = ?) OR (`author-id` = ? AND `gravity` = ? AND `vid` = ? AND `thr-parent-id` = `parent-uri-id`)) AND " . $sql, $cid, GRAVITY_PARENT, $cid, GRAVITY_ACTIVITY, Verb::getID(Activity::ANNOUNCE), local_user()]; } else { $condition = ["`$contact_field` = ? AND `gravity` IN (?, ?) AND " . $sql,