Skip to content

Commit

Permalink
Set notification category "Administrative"
Browse files Browse the repository at this point in the history
  • Loading branch information
yurabakhtin committed May 31, 2024
1 parent 2afb35f commit 95e565f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
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.1.1 (Unreleased)
----------------------
- Enh #82: Set notification category "Administrative"

1.1.0 (May 1, 2024)
----------------------
- Fix #75: Display only published contents
Expand Down
2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"profanity filter",
"abuse"
],
"version": "1.1.0",
"version": "1.1.1",
"authors": [
{
"name": "HumHub Staff"
Expand Down
9 changes: 9 additions & 0 deletions notifications/NewReportAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

namespace humhub\modules\reportcontent\notifications;

use humhub\modules\admin\notifications\AdminNotificationCategory;
use humhub\modules\comment\models\Comment;
use humhub\modules\content\components\ContentActiveRecord;
use humhub\modules\content\models\Content;
Expand Down Expand Up @@ -40,6 +41,14 @@ class NewReportAdmin extends BaseNotification
*/
private $_reportedRecord = null;

/**
* @inheritdoc
*/
protected function category()
{
return new AdminNotificationCategory();
}

/**
* @inheritdoc
*/
Expand Down

0 comments on commit 95e565f

Please sign in to comment.