]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Conversation/Network.php
API: Fix "in_reply_to_status_id"
[friendica.git] / src / Module / Conversation / Network.php
index 908d0a63b4df251c7c67935d8ab75b7a7d8963ba..2978ecbb9d72dfd86ed129feb8418daebb9b4356 100644 (file)
@@ -119,7 +119,7 @@ class Network extends BaseModule
 
                        if (self::$forumContactId) {
                                // If self::$forumContactId belongs to a communitity forum or a privat goup,.add a mention to the status editor
-                               $condition = ["`id` = ? AND (`forum` OR `prv`)", self::$forumContactId];
+                               $condition = ["`id` = ? AND `contact-type` = ?", self::$forumContactId, Contact::TYPE_COMMUNITY];
                                $contact = DBA::selectFirst('contact', ['addr'], $condition);
                                if (!empty($contact['addr'])) {
                                        $content = '!' . $contact['addr'];