mirror of
https://github.com/friendica/friendica
synced 2025-04-23 19:10:13 +00:00
Use the "contact-type" instead of "forum" or "prv"
This commit is contained in:
parent
b857c26999
commit
9a764516d0
12 changed files with 24 additions and 38 deletions
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue