1
0
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:
Sami Mazouz
2022-11-07 12:52:28 +01:00
committed by GitHub
parent 2096fa2807
commit 62a396e434
7 changed files with 112 additions and 34 deletions

View File

@@ -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"
}
}