Skip to content

Node.js based forum software built for the modern web

fixed extra space in new if there is no username

barisusakli642b9e4d6916
diff --git a/public/src/forum/topic/postTools.js b/public/src/forum/topic/postTools.js
index f693ef64f4..66823ea656 100644
--- a/public/src/forum/topic/postTools.js
+++ b/public/src/forum/topic/postTools.js
@@ -73,7 +73,8 @@ define(['composer'], function(composer) {
}
}
- var username = getUserName(button) + ' ';
+ var username = getUserName(button);
+ username += username ? ' ' : '';
composer.newReply(tid, getPid(button), topicName, selectionText.length > 0 ? selectionText + '\n\n' + username : '' + username);
}