fix: rewards fixes

fix enabled/disabled button
sort rewards from oldest to newest
This commit is contained in:
Barış Soner Uşaklı
2023-10-16 19:02:42 -04:00
parent d45f506f92
commit 347a43f4fe
6 changed files with 27 additions and 12 deletions

View File

@@ -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');