Node.js based forum software built for the modern web
properly referencing the tid of the composer instead of blindly checking templates.get('topic_id')
Julian Lamf2ffc2b5335d
diff --git a/public/src/modules/composer.js b/public/src/modules/composer.jsindex 8b30a5aacf..07bbee5c88 100644--- a/public/src/modules/composer.js+++ b/public/src/modules/composer.js@@ -390,12 +390,13 @@ define(['taskbar'], function(taskbar) {composer.createNewComposer(post_uuid);}- var tid = templates.get('topic_id');+ var tid = templates.get('topic_id'),+ postData = composer.posts[post_uuid];if (tid) {// Replying to a topicsocket.emit('modules.composer.register', {uuid: post_uuid,- tid: templates.get('topic_id'),+ tid: postData.tid,uid: app.uid});}