mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-07 23:30:02 +01:00
Add User (uid) Welcome Notification (#6045)
This commit is contained in:
committed by
Barış Soner Uşaklı
parent
78e65ab8c8
commit
5ed6b5c414
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"notifications": "Notifications",
|
||||
"welcome-notification": "Welcome Notification",
|
||||
"welcome-notification-link": "Welcome Notification Link"
|
||||
"welcome-notification-link": "Welcome Notification Link",
|
||||
"welcome-notification-uid": "Welcome Notification User (UID)"
|
||||
}
|
||||
@@ -320,6 +320,7 @@ UserNotifications.sendWelcomeNotification = function (uid, callback) {
|
||||
bodyShort: meta.config.welcomeNotification,
|
||||
path: path,
|
||||
nid: 'welcome_' + uid,
|
||||
from: meta.config.welcomeUid ? meta.config.welcomeUid : null,
|
||||
}, next);
|
||||
},
|
||||
function (notification, next) {
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<form>
|
||||
<strong>[[admin/settings/notifications:welcome-notification]]</strong><br /> <textarea class="form-control" data-field="welcomeNotification"></textarea><br />
|
||||
<strong>[[admin/settings/notifications:welcome-notification-link]]</strong><br /> <input type="text" class="form-control" data-field="welcomeLink"><br />
|
||||
<strong>[[admin/settings/notifications:welcome-notification-uid]]</strong><br /> <input type="text" class="form-control" data-field="welcomeUid"><br />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user