mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
closes #4237
This commit is contained in:
@@ -55,6 +55,11 @@ var async = require('async'),
|
|||||||
}
|
}
|
||||||
notification.image = userData.picture || null;
|
notification.image = userData.picture || null;
|
||||||
notification.user = userData;
|
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);
|
next(null, notification);
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user