From cd0cb5c5f1946a360a85d3ab7c83df65dc040040 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 23 Feb 2016 13:16:28 -0500 Subject: [PATCH] closes #4237 --- src/notifications.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/notifications.js b/src/notifications.js index 8d984f11c3..86feff02b4 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -55,6 +55,11 @@ var async = require('async'), } notification.image = userData.picture || null; notification.user = userData; + + if (userData.username === '[[global:guest]]') { + notification.bodyShort = notification.bodyShort.replace(/([\s\S]*?),[\s\S]*?,([\s\S]*?)/, '$1, [[global:guest]], $2'); + } + next(null, notification); }); return;