fix: #9681, update posts in queue if target tid is merged

This commit is contained in:
Barış Soner Uşaklı
2021-07-30 22:51:06 -04:00
parent 03a98f4de4
commit 0c81642997
4 changed files with 52 additions and 10 deletions

View File

@@ -48,8 +48,9 @@ async function postReply(socket, data) {
'downvote:disabled': meta.config['downvote:disabled'] === 1,
};
socket.emit('event:new_post', result);
if (socket.emit) {
socket.emit('event:new_post', result);
}
user.updateOnlineUsers(socket.uid);
socketHelpers.notifyNew(socket.uid, 'newPost', result);