mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
fix: lang key for move notification closes #12241
This commit is contained in:
@@ -290,7 +290,7 @@ postsAPI.move = async function (caller, data) {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
if (!postDeleted && !topicDeleted) {
|
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');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ module.exports = function (SocketTopics) {
|
|||||||
const notifyUids = await privileges.categories.filterUids('topics:read', topicData.cid, uids);
|
const notifyUids = await privileges.categories.filterUids('topics:read', topicData.cid, uids);
|
||||||
socketHelpers.emitToUids('event:topic_moved', topicData, notifyUids);
|
socketHelpers.emitToUids('event:topic_moved', topicData, notifyUids);
|
||||||
if (!topicData.deleted) {
|
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({
|
await events.log({
|
||||||
|
|||||||
Reference in New Issue
Block a user