Fix: Include user profile posts option in dashboard stream broken

This commit is contained in:
Lucas Bartholemy 2018-12-17 15:41:32 +01:00
parent 6cd3c7e4f0
commit eedc64c2ec
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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];
}