From: Michael Vogel Date: Sat, 2 Oct 2021 21:18:54 +0000 (+0200) Subject: Update src/Module/Conversation/Network.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fc9ac0ff4611e1d2eecd830947e095c931e49fea;p=friendica.git Update src/Module/Conversation/Network.php Co-authored-by: Hypolite Petovan --- diff --git a/src/Module/Conversation/Network.php b/src/Module/Conversation/Network.php index ba73ec6b64..405e3772d1 100644 --- a/src/Module/Conversation/Network.php +++ b/src/Module/Conversation/Network.php @@ -382,7 +382,7 @@ class Network extends BaseModule $conditionStrings = DBA::mergeConditions($conditionStrings, ["`contact-id` IN (SELECT `contact-id` FROM `group_member` WHERE `gid` = ?)", self::$groupId]); } elseif (self::$forumContactId) { $conditionStrings = DBA::mergeConditions($conditionStrings, - ["((`contact-id` = ?) OR EXISTS(SELECT `uri-id` FROM `post-user-view` WHERE `post-user-view`.`parent-uri-id` = `" . $table . "`.`uri-id` AND (`contact-id` = ? AND `gravity` = ? AND `vid` = ? AND `uid` = ?)))", + ["((`contact-id` = ?) OR EXISTS(SELECT `uri-id` FROM `post-user-view` WHERE `post-user-view`.`parent-uri-id` = " . DBA::quoteIdentifier($table) . ".`uri-id` AND (`contact-id` = ? AND `gravity` = ? AND `vid` = ? AND `uid` = ?)))", self::$forumContactId, self::$forumContactId, GRAVITY_ACTIVITY, Verb::getID(Activity::ANNOUNCE), local_user()]); }