Skip to main content

HumHub 1.6

Released July 2020

Nested comments

Prior to HumHub 1.6 users were not able to directly reply to another users comments, which sometimes led to cluttered conversations. With this update we have added support for nested comments, offering more structure and clarity to longer conversations. In this release we allow one level of sub-comments, which may increase in further releases.

Marketplace updates

The HumHub Marketplace has received several new features. In order to increase transparency, modules independently developed by our Community are now marked accordingly. To make the publishing and optimization process more efficient, beta versions can now be published in the marketplace for interested users to test. To boost the development of custom modules, we have additionally added the possibility to purchase third-party modules directly from the developer/publisher and install them via the marketplace. For this purpose users are now able to contact the developers via the HumHub Marketplace.

Stream enhancements

HumHub 1.6 introduced multiple stream and stream filter enhancements.

New profile stream filter

Since HumHub 1.5 the user profile stream by default includes all content created by the user, even outside of his/her profile. This is a great way to get an overview of an users activity in the network and to enliven user profiles.

The only way of disabling this feature was by file configuration. Instead of completely disabling or enabling this feature, HumHub 1.6 introduces an additional profile stream filter allowing users to include or exclude content created outside of a user profile by stream filter selection.

You can manage the default state of this filter by adding the following configuration:

return [
'modules' => [
'user' => [
'includeAllUserContentsOnProfile' => false
]
]
];

Note: In HumHub 1.5 the includeAllUserContentsOnProfile configuration was used to completely disable this feature.

Archived stream filter

In older versions of HumHub the "Include archived content" filter could be used to include archived content beside non archived content entries but there was no way of explicitly filtering for archived content. In HumHub 1.6 this filter was renamed to "Archived" and now will only include archived content when activated in order to search through the content archive.

User profile archive

Users now can archive content from their profile.

Disable profile stream

To cover even more use-cases for the HumHub platform, the profile stream can now be disabled by the following file configuration:

return [
'modules' => [
'user' => [
'profileDisableStream' => true
]
]
];

Maximum amount of pinned content entries

Prior to HumHub 1.6 users could pin up to two posts within a profile or space. This limit could not be configured and was set due to stream limitations of older HumHub versions. In HumHub 1.6 this value can be configured for profiles and spaces independently.

New default values:

ConfigurationDefault
maxPinnedSpaceContent10
maxPinnedProfileContent2

Overwrite default values in file configuration:

return [
'modules' => [
'content' => [
'maxPinnedSpaceContent' => 5,
'maxPinnedProfileContent' => 1,
]
]
];

Additional user profile fields

HumHub 1.6 adds the concept of virtual profile fields. Virtual profile fields can be used to add values which are not editable and which are not part of the profile table.

HumHub 1.6 by default supports the following virtual profile fields:

  • User email
  • Username

Those fields will be created by default when installing HumHub. In case of an existing installation, those two fields can be added manually under Administration -> Users -> Profiles.

Topic chooser visibility

In older HumHub versions a topic chooser input was visible for users even if there were no topics available on a space and the user did not have the permission to add new topics. This led to confusion for users not familiar with the topic concept. Now the topic chooser is only visible to users which are either able to select existing or create new topics.

For developers

Stream filter enhancements

HumHub 1.6 simplifies the definition of stream filters. You can now add or remove stream query filters within your StreamAction:initQuery as follows:

class MyStreamAction extends ContentContainerStream
{
protected function initQuery($options = [])
{
$query = parent::initQuery($options);
$query->addFilterHandler(new MyStreamFilter());
return $query;
}
}

The same can be achieved by implementing a custom StreamQuery as for example:

class MyStreamAction extends ContentContainerStream
{
public $streamQuery = MyStreamQuery::class;
}
class MyStreamQuery extends ContentContainerStreamQuery
{
protected function beforeApplyFilters()
{
$this->addFilterHandler(MyStreamFilter::class);
parent::beforeApplyFilters();
}
}

Enhanced testing

We have simplified the configuration of the test environment by adding a @protected/humhub/tests/config/env/env.php file which now should be used to configure e.g. the database access of your test environment instead of overwriting @protected/humhub/tests/config/common.php.

Furthermore we've updated the codeception version to v4.1.6. Codeception 4 brings many new tools should ease the development of core and module tests.

New form field widgets

There are two new form field widgets available:

  • humhub\modules\ui\form\widget\SortOrderField: Sort order management
  • humhub\modules\ui\form\widget\ContentVisibilitySelect: Content visibility selection