diff --git a/public/language/en-GB/admin/settings/notifications.json b/public/language/en-GB/admin/settings/notifications.json
index da6c9680a3..c6d8b928ce 100644
--- a/public/language/en-GB/admin/settings/notifications.json
+++ b/public/language/en-GB/admin/settings/notifications.json
@@ -2,5 +2,6 @@
"notifications": "Notifications",
"welcome-notification": "Welcome Notification",
"welcome-notification-link": "Welcome Notification Link",
- "welcome-notification-uid": "Welcome Notification User (UID)"
+ "welcome-notification-uid": "Welcome Notification User (UID)",
+ "post-queue-notification-uid": "Post Queue User (UID)"
}
\ No newline at end of file
diff --git a/src/socket.io/posts.js b/src/socket.io/posts.js
index 7ff99d6992..a4ab025cc4 100644
--- a/src/socket.io/posts.js
+++ b/src/socket.io/posts.js
@@ -150,13 +150,17 @@ async function acceptOrReject(method, socket, data) {
}
async function sendQueueNotification(type, targetUid, path) {
- const notifObj = await notifications.create({
+ const notifData = {
type: type,
nid: `${type}-${targetUid}-${path}`,
bodyShort: type === 'post-queue-accepted' ?
'[[notifications:post-queue-accepted]]' : '[[notifications:post-queue-rejected]]',
path: path,
- });
+ };
+ if (parseInt(meta.config.postQueueNotificationUid, 10) > 0) {
+ notifData.from = meta.config.postQueueNotificationUid;
+ }
+ const notifObj = await notifications.create(notifData);
await notifications.push(notifObj, [targetUid]);
}
diff --git a/src/views/admin/settings/notifications.tpl b/src/views/admin/settings/notifications.tpl
index 3e68295699..7fc1934832 100644
--- a/src/views/admin/settings/notifications.tpl
+++ b/src/views/admin/settings/notifications.tpl
@@ -7,6 +7,7 @@
[[admin/settings/notifications:welcome-notification]]
[[admin/settings/notifications:welcome-notification-link]]
[[admin/settings/notifications:welcome-notification-uid]]
+ [[admin/settings/notifications:post-queue-notification-uid]]