Skip to content

Node.js based forum software built for the modern web

refactor: remove datetime, it's ovewritten in notifications.create

Barış Soner Uşaklı1c38912c2f30
diff --git a/src/user/notifications.js b/src/user/notifications.js
index c9fe02d8f8..3666c27505 100644
--- a/src/user/notifications.js
+++ b/src/user/notifications.js
@@ -260,7 +260,6 @@ UserNotifications.sendNameChangeNotification = async function (uid, username) {
bodyShort: tx.compile('user:username-taken-workaround', tx.escape(username)),
image: 'brand:logo',
nid: `username_taken:${uid}`,
- datetime: Date.now(),
});
await notifications.push(notifObj, [uid]);