diff --git a/composer.json b/composer.json index 7fb613b..71c888c 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "forum": "https://discuss.flarum.org/d/18607" }, "require": { - "flarum/core": "^1.3.1" + "flarum/core": "^1.6.2" }, "replace": { "piotr-tokarczyk/flarum-user-default-preferences": "*" diff --git a/locale/en.yml b/locale/en.yml index 3bcfa24..9bc135d 100644 --- a/locale/en.yml +++ b/locale/en.yml @@ -7,3 +7,5 @@ fof-default-user-preferences: postMentioned-help: When enabled, new users will automatically opt into receiving an email notification when one of their posts is mentioned. userMentioned: User mentioned email userMentioned-help: When enabled, new users will automatically opt into receiving an email notification when they are @mentioned. + groupMentioned: Group mentioned email + groupMentioned-help: When enabled, new users will automatically opt into recieving an email notifiation when a group they belong to is mentioned. diff --git a/src/Providers/DefaultUserPreferencesProvider.php b/src/Providers/DefaultUserPreferencesProvider.php index ce72898..24795ec 100644 --- a/src/Providers/DefaultUserPreferencesProvider.php +++ b/src/Providers/DefaultUserPreferencesProvider.php @@ -23,6 +23,7 @@ public function boot() ['key' => 'postMentioned', 'value' => true, 'type' => 'bool'], ['key' => 'userMentioned', 'value' => true, 'type' => 'bool'], ['key' => 'followAfterReply', 'value' => true, 'type' => 'bool'], + ['key' => 'groupMentioned', 'value' => false, 'type' => 'bool'], ]; });