Notification delivery (#6072)

* ability for users to choose how they receive notifications

add type field to more notifications, the type field is used to
determine what to do based on user
setting(none,notification,email,notificationemail)

* change var name to types

* cleanup

* add event types for privileged users

* remove unused language keys

* fix uids check

* changed if statements

* upgrade script to preserver old settings
This commit is contained in:
Barış Soner Uşaklı
2017-11-15 21:35:10 -05:00
committed by GitHub
parent e68e5122e2
commit dd176dd5f2
14 changed files with 329 additions and 137 deletions

View File

@@ -696,6 +696,7 @@ Flags.notify = function (flagObj, uid, callback) {
}
notifications.create({
type: 'new-user-flag',
bodyShort: '[[notifications:user_flagged_user, ' + flagObj.reporter.username + ', ' + flagObj.target.username + ']]',
bodyLong: flagObj.description,
path: '/uid/' + flagObj.targetId,