Skip to content

Node.js based forum software built for the modern web

fix: #10172, fix postqueue accept/reject notification text

Barış Soner Uşaklı6a75ed50fa78
diff --git a/src/socket.io/posts.js b/src/socket.io/posts.js
index a1f9b06c8d..064945c910 100644
--- a/src/socket.io/posts.js
+++ b/src/socket.io/posts.js
@@ -136,7 +136,7 @@ async function sendQueueNotification(type, targetUid, path, notificationText) {
const notifData = {
type: type,
nid: `${type}-${targetUid}-${path}`,
- bodyShort: `[[notifications:post-queue-notify, ${notificationText}]]` || `[[notifications:${type}]]`,
+ bodyShort: notificationText ? `[[notifications:${type}, ${notificationText}]]` : `[[notifications:${type}]]`,
path: path,
};
if (parseInt(meta.config.postQueueNotificationUid, 10) > 0) {