Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace humhub\modules\contentBookmarks;

use humhub\helpers\ControllerHelper;
use humhub\modules\content\widgets\WallEntryControls;
use humhub\modules\contentBookmarks\helpers\Url;
use humhub\modules\contentBookmarks\models\filters\BookmarksContentStreamFilter;
Expand Down Expand Up @@ -55,7 +56,7 @@ public static function onProfileMenuInit($event)
'url' => Url::toSavedContent($event->sender->user),
'icon' => 'bookmark',
'sortOrder' => 250,
'isActive' => MenuLink::isActiveState('content-bookmarks', 'saved'),
'isActive' => ControllerHelper::isActivePath('content-bookmarks', 'saved'),
]));
}

Expand Down
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.3.0 (June 5, 2026)
--------------------
- Enh #40: Update for HumHub 1.19

1.2.1 (TBD)
-----------
- Fix #26: Update module resources path
Expand Down
5 changes: 2 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
"keywords": [
"content","bookmarks"
],
"version": "1.2.1",
"version": "1.3.0",
"humhub": {
"minVersion": "1.18",
"maxVersion": "1.18"
"minVersion": "1.19"
},
"screenshots": [
"resources/screenshot1.png",
Expand Down
2 changes: 1 addition & 1 deletion stream/filters/BookmarkStreamFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function apply()
// Limit to public posts when no member
if (Yii::$app->user->isGuest) {
$this->query->andWhere('content.visibility = :visibility', [':visibility' => Content::VISIBILITY_PUBLIC]);
} elseif (!Yii::$app->user->getIdentity()->canViewAllContent()) {
} elseif (!Yii::$app->user->getIdentity()->canManageAllContent()) {
// Limit only if current User/Admin cannot view all content
$this->query->andWhere('content.visibility = :visibility'
. ' OR content.created_by = :userId'
Expand Down
4 changes: 2 additions & 2 deletions tests/codeception/fixtures/ContentBookmarkFixture.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@

namespace humhub\modules\contentBookmarks\tests\codeception\fixtures;

use humhub\modules\user\models\Group;
use humhub\modules\contentBookmarks\models\ContentBookmark;
use yii\test\ActiveFixture;

class ContentBookmarkFixture extends ActiveFixture
{
public $modelClass = Group::class;
public $modelClass = ContentBookmark::class;
public $dataFile = '@content-bookmarks/tests/codeception/fixtures/data/content_bookmark.php';
}
Loading