From 6a75ed50fa7806a30048da579080f76f9984c12a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 16 Jan 2022 16:13:42 -0500 Subject: [PATCH] fix: #10172, fix postqueue accept/reject notification text --- src/socket.io/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {