mirror of
https://github.com/friendica/friendica
synced 2025-05-12 03:44:10 +02:00
Another preparation for forum posts via AP
This commit is contained in:
parent
0872fe746a
commit
030c0b5dc6
2 changed files with 38 additions and 14 deletions
|
@ -603,15 +603,20 @@ class Notifier
|
|||
return false;
|
||||
}
|
||||
|
||||
return self::isForum($item['contact-id']);
|
||||
}
|
||||
|
||||
private static function isForum($contactid)
|
||||
{
|
||||
$fields = ['forum', 'prv'];
|
||||
$condition = ['id' => $item['contact-id']];
|
||||
$condition = ['id' => $contactid];
|
||||
$contact = DBA::selectFirst('contact', $fields, $condition);
|
||||
if (!DBA::isResult($contact)) {
|
||||
// Should never happen
|
||||
return false;
|
||||
}
|
||||
|
||||
// Is the post from a forum?
|
||||
// Is it a forum?
|
||||
return ($contact['forum'] || $contact['prv']);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue