Node.js based forum software built for the modern web
test: fix guest handles in onNewPost
Barış Soner Uşaklı81f7371a7bf8
diff --git a/src/topics/create.js b/src/topics/create.jsindex 9204c4232c..6c077b9c6d 100644--- a/src/topics/create.js+++ b/src/topics/create.js@@ -228,7 +228,7 @@ module.exports = function (Topics) {return postData;};- async function onNewPost({ pid, tid, uid: postOwner }, { uid }) {+ async function onNewPost({ pid, tid, uid: postOwner }, { uid, handle }) {const [[postData], [userInfo]] = await Promise.all([posts.getPostSummaryByPids([pid], uid, {}),posts.getUserInfoForPosts([postOwner], uid),@@ -248,7 +248,7 @@ module.exports = function (Topics) {postData.display_moderator_tools = true;postData.display_move_tools = true;postData.selfPost = false;-+ posts.overrideGuestHandle(postData, handle);return postData;}