2017-07-03 03:56:26 +02:00
|
|
|
# Configuring notifications
|
|
|
|
|
|
|
|
## Configuring whether notifications will send to authors of blogs if comments are spam
|
|
|
|
|
2017-09-20 02:15:19 +02:00
|
|
|
Default behaviour using the `silverstripe/comment-notifications` module is to send notifications of comments to
|
|
|
|
authors regardless of whether they are spam or not.
|
2017-07-03 03:56:26 +02:00
|
|
|
|
2017-09-20 02:15:19 +02:00
|
|
|
In some cases you may wish to not send a notification email to an author if the comment is spam,
|
|
|
|
this is a configurable option.
|
2017-07-03 03:56:26 +02:00
|
|
|
|
|
|
|
Add the following into your yaml config:
|
|
|
|
|
|
|
|
```
|
2017-09-20 02:15:19 +02:00
|
|
|
SilverStripe\Blog\Model\BlogPostNotifications:
|
2017-07-03 03:56:26 +02:00
|
|
|
notification_on_spam: false
|
|
|
|
```
|
|
|
|
|