fix: lang key for move notification closes #12241

This commit is contained in:
Barış Soner Uşaklı
2023-12-21 09:59:36 -05:00
parent 459468be0f
commit 48a2b5f725
2 changed files with 2 additions and 2 deletions

View File

@@ -290,7 +290,7 @@ postsAPI.move = async function (caller, data) {
]);
if (!postDeleted && !topicDeleted) {
socketHelpers.sendNotificationToPostOwner(data.pid, caller.uid, 'move', 'notifications:moved_your_post');
socketHelpers.sendNotificationToPostOwner(data.pid, caller.uid, 'move', 'notifications:moved-your-post');
}
};

View File

@@ -36,7 +36,7 @@ module.exports = function (SocketTopics) {
const notifyUids = await privileges.categories.filterUids('topics:read', topicData.cid, uids);
socketHelpers.emitToUids('event:topic_moved', topicData, notifyUids);
if (!topicData.deleted) {
socketHelpers.sendNotificationToTopicOwner(tid, socket.uid, 'move', 'notifications:moved_your_topic');
socketHelpers.sendNotificationToTopicOwner(tid, socket.uid, 'move', 'notifications:moved-your-topic');
}
await events.log({