X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FForumManager.php;h=5decaac141454fac2f69c1e653913f79e271e860;hb=ae2e8beaaca342a0d5ced45beb0fc6c1b4f8a4a4;hp=f5e77614726b1c3ec1bfca260fe63a3bbbe67b78;hpb=ba9f145ef78236ffbf304d07adbe2aa51f5326d4;p=friendica.git diff --git a/src/Content/ForumManager.php b/src/Content/ForumManager.php index f5e7761472..5decaac141 100644 --- a/src/Content/ForumManager.php +++ b/src/Content/ForumManager.php @@ -1,6 +1,6 @@ Contact::TYPE_COMMUNITY, 'network' => [Protocol::DFRN, Protocol::ACTIVITYPUB], - 'uid' => $uid, + 'uid' => $uid, 'blocked' => false, 'pending' => false, - 'archive' => false, + 'archive' => false, ]; $condition = DBA::mergeConditions($condition, ["`platform` != ?", 'peertube']); @@ -103,7 +102,7 @@ class ForumManager /** * Forumlist widget * - * Sidebar widget to show subcribed friendica forums. If activated + * Sidebar widget to show subscribed friendica forums. If activated * in the settings, it appears at the notwork page sidebar * * @param string $baseurl Base module path @@ -224,7 +223,7 @@ class ForumManager AND NOT `contact`.`pending` AND NOT `contact`.`archive` AND `contact`.`uid` = ? GROUP BY `contact`.`id`", - Session::getLocalUser(), Protocol::DFRN, Protocol::ACTIVITYPUB, Contact::TYPE_COMMUNITY, Session::getLocalUser() + DI::userSession()->getLocalUserId(), Protocol::DFRN, Protocol::ACTIVITYPUB, Contact::TYPE_COMMUNITY, DI::userSession()->getLocalUserId() ); return DBA::toArray($stmtContacts);