Skip to content

Commit

Permalink
feat: support groupmention (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland authored Nov 28, 2022
1 parent 2f4aa37 commit e13717e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "*"
Expand Down
2 changes: 2 additions & 0 deletions locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
1 change: 1 addition & 0 deletions src/Providers/DefaultUserPreferencesProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
];
});

Expand Down

0 comments on commit e13717e

Please sign in to comment.