mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-09 00:24:29 +02: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
|
@ -925,9 +925,9 @@ class DFRN
|
|||
|
||||
foreach ($mentioned as $mention) {
|
||||
$condition = ['uid' => $owner["uid"], 'nurl' => Strings::normaliseLink($mention)];
|
||||
$contact = DBA::selectFirst('contact', ['forum', 'prv'], $condition);
|
||||
$contact = DBA::selectFirst('contact', ['contact-type'], $condition);
|
||||
|
||||
if (DBA::isResult($contact) && ($contact["forum"] || $contact["prv"])) {
|
||||
if (DBA::isResult($contact) && ($contact['contact-type'] == Contact::TYPE_COMMUNITY)) {
|
||||
XML::addElement(
|
||||
$doc,
|
||||
$entry,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue