mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
fix: rewards fixes
fix enabled/disabled button sort rewards from oldest to newest
This commit is contained in:
@@ -99,7 +99,7 @@ Notifications.getMultiple = async function (nids) {
|
||||
}
|
||||
|
||||
notification.user = usersData[index];
|
||||
if (notification.user) {
|
||||
if (notification.user && notification.from) {
|
||||
notification.image = notification.user.picture || null;
|
||||
if (notification.user.username === '[[global:guest]]') {
|
||||
notification.bodyShort = notification.bodyShort.replace(/([\s\S]*?),[\s\S]*?,([\s\S]*?)/, '$1, [[global:guest]], $2');
|
||||
|
||||
Reference in New Issue
Block a user