Issue 7603: Display forums too when they are AP
This commit is contained in:
parent
2dcb9926bc
commit
e588c350ef
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ class ForumManager
|
||||||
$params = ['order' => ['name']];
|
$params = ['order' => ['name']];
|
||||||
}
|
}
|
||||||
|
|
||||||
$condition_str = "`network` = ? AND `uid` = ? AND NOT `blocked` AND NOT `pending` AND NOT `archive` AND ";
|
$condition_str = "`network` IN (?, ?) AND `uid` = ? AND NOT `blocked` AND NOT `pending` AND NOT `archive` AND ";
|
||||||
|
|
||||||
if ($showprivate) {
|
if ($showprivate) {
|
||||||
$condition_str .= '(`forum` OR `prv`)';
|
$condition_str .= '(`forum` OR `prv`)';
|
||||||
|
@ -58,7 +58,7 @@ class ForumManager
|
||||||
$forumlist = [];
|
$forumlist = [];
|
||||||
|
|
||||||
$fields = ['id', 'url', 'name', 'micro', 'thumb'];
|
$fields = ['id', 'url', 'name', 'micro', 'thumb'];
|
||||||
$condition = [$condition_str, Protocol::DFRN, $uid];
|
$condition = [$condition_str, Protocol::DFRN, Protocol::ACTIVITYPUB, $uid];
|
||||||
$contacts = DBA::select('contact', $fields, $condition, $params);
|
$contacts = DBA::select('contact', $fields, $condition, $params);
|
||||||
if (!$contacts) {
|
if (!$contacts) {
|
||||||
return($forumlist);
|
return($forumlist);
|
||||||
|
|
Loading…
Reference in a new issue