mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
properly referencing the tid of the composer instead of blindly checking templates.get('topic_id')
This commit is contained in:
@@ -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 topic
|
||||
socket.emit('modules.composer.register', {
|
||||
uuid: post_uuid,
|
||||
tid: templates.get('topic_id'),
|
||||
tid: postData.tid,
|
||||
uid: app.uid
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user