Skip to content

Node.js based forum software built for the modern web

fixed bug where an extra space was added to new replies

Julian Lam305c54a727ed
diff --git a/public/src/client/topic/postTools.js b/public/src/client/topic/postTools.js
index c3e31103bd..bee2c15486 100644
--- a/public/src/client/topic/postTools.js
+++ b/public/src/client/topic/postTools.js
@@ -164,7 +164,7 @@ define('forum/topic/postTools', ['share', 'navigator', 'components', 'translator
tid: tid,
pid: getData(button, 'data-pid'),
topicName: topicName,
- text: username + ' ' || ''
+ text: username ? username + ' ' : ''
});
}
}