mirror of
https://github.com/flarum/core.git
synced 2025-08-31 11:52:16 +02:00
feat: send notifications of a new reply when post is approved (#3656)
* test(subscriptions): approved reply sends out notifications to users Signed-off-by: Sami Mazouz <sychocouldy@gmail.com> * feat: send notifications when a post is approved The code in approval was extracted into a listener because no matter what listeners are always executed before subscribers even if the extension is set to load before. Signed-off-by: Sami Mazouz <sychocouldy@gmail.com> Signed-off-by: Sami Mazouz <sychocouldy@gmail.com>
This commit is contained in:
@@ -33,6 +33,9 @@
|
||||
"flarum-extension": {
|
||||
"title": "Subscriptions",
|
||||
"category": "feature",
|
||||
"optional-dependencies": [
|
||||
"flarum/approval"
|
||||
],
|
||||
"icon": {
|
||||
"name": "fas fa-star",
|
||||
"backgroundColor": "#ffea7b",
|
||||
@@ -86,6 +89,7 @@
|
||||
"test:setup": "Sets up a database for use with integration tests. Execute this only once."
|
||||
},
|
||||
"require-dev": {
|
||||
"flarum/testing": "^1.0.0"
|
||||
"flarum/testing": "^1.0.0",
|
||||
"flarum/approval": "@dev"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user