From eedc64c2ec3d1de53c4ecf0f7d13eb361a07bac7 Mon Sep 17 00:00:00 2001 From: Lucas Bartholemy Date: Mon, 17 Dec 2018 15:41:32 +0100 Subject: [PATCH] Fix: Include user profile posts option in dashboard stream broken --- protected/humhub/docs/CHANGELOG.md | 1 + .../dashboard/components/actions/DashboardStreamAction.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/protected/humhub/docs/CHANGELOG.md b/protected/humhub/docs/CHANGELOG.md index 11d5c13ebc..8453163e41 100644 --- a/protected/humhub/docs/CHANGELOG.md +++ b/protected/humhub/docs/CHANGELOG.md @@ -8,6 +8,7 @@ HumHub Change Log - Fix #3378: Update user in search index when group memberships changes - Fix: Space un-archived activity view path broken - Enh: Accepting module README.md files in 'docs' directory +- Fix: Include user profile posts option in dashboard stream broken 1.3.8 (December 10, 2018) diff --git a/protected/humhub/modules/dashboard/components/actions/DashboardStreamAction.php b/protected/humhub/modules/dashboard/components/actions/DashboardStreamAction.php index f163189a02..dd6465a633 100644 --- a/protected/humhub/modules/dashboard/components/actions/DashboardStreamAction.php +++ b/protected/humhub/modules/dashboard/components/actions/DashboardStreamAction.php @@ -108,7 +108,7 @@ class DashboardStreamAction extends ActivityStreamAction // Automatic include user profile posts without required following if ($dashboardModule->autoIncludeProfilePosts == Module::STREAM_AUTO_INCLUDE_PROFILE_POSTS_ALWAYS || ( $dashboardModule->autoIncludeProfilePosts == Module::STREAM_AUTO_INCLUDE_PROFILE_POSTS_ADMIN_ONLY && Yii::$app->user->isAdmin())) { - $allUsers = (new Query())->select(["allusers.id"])->from('user allusers'); + $allUsers = (new Query())->select(["allusers.contentcontainer_id"])->from('user allusers'); $union .= " UNION " . Yii::$app->db->getQueryBuilder()->build($allUsers)[0]; }