mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
closes #1201
This commit is contained in:
@@ -735,6 +735,10 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
socket.on('event:new_post', function(data) {
|
socket.on('event:new_post', function(data) {
|
||||||
|
if(data && data.posts && data.posts.length && data.posts[0].tid !== templates.get('topic_id')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if(config.usePagination) {
|
if(config.usePagination) {
|
||||||
onNewPostPagination(data);
|
onNewPostPagination(data);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user