Skip to content

Node.js based forum software built for the modern web

fix: closes #14458, go back to using .translate for bodyShort

Barış Soner Uşaklı162cb6700d5b
diff --git a/src/user/notifications.js b/src/user/notifications.js
index 3d8d0f62b6..c9fe02d8f8 100644
--- a/src/user/notifications.js
+++ b/src/user/notifications.js
@@ -134,10 +134,8 @@ UserNotifications.getNotifications = async function (nids, uid) {
await deleteUserNids(deletedNids, uid);
notificationData = await notifications.merge(notificationData);
await Promise.all(notificationData.map(async (n) => {
- if (n) {
- if (n.bodyShort) {
- n.bodyShort = await tx.translateKey(n.bodyShort, [], userSettings.userLang);
- }
+ if (n?.bodyShort) {
+ n.bodyShort = await tx.translate(n.bodyShort, userSettings.userLang);
}
}));