mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	closes #1999
This commit is contained in:
		| @@ -13,7 +13,7 @@ define('forum/topic/posts', [ | ||||
| 	var Posts = {}; | ||||
|  | ||||
| 	Posts.onNewPost = function(data) { | ||||
| 		var tid = ajaxify.variables.get('topic_id'); | ||||
| 		var tid = ajaxify.data.tid; | ||||
| 		if (data && data.posts && data.posts.length && parseInt(data.posts[0].tid, 10) !== parseInt(tid, 10)) { | ||||
| 			return; | ||||
| 		} | ||||
| @@ -133,9 +133,9 @@ define('forum/topic/posts', [ | ||||
|  | ||||
| 		findInsertionPoint(); | ||||
|  | ||||
| 		data.title = $('<div></div>').text(ajaxify.variables.get('topic_name')).html(); | ||||
| 		data.slug = ajaxify.variables.get('topic_slug'); | ||||
| 		data.viewcount = ajaxify.variables.get('viewcount'); | ||||
| 		data.title = $('<div></div>').text(ajaxify.data.title).html(); | ||||
| 		data.slug = ajaxify.data.slug; | ||||
| 		data.viewcount = ajaxify.data.viewcount; | ||||
|  | ||||
| 		infinitescroll.parseAndTranslate('topic', 'posts', data, function(html) { | ||||
| 			if (after) { | ||||
| @@ -219,7 +219,7 @@ define('forum/topic/posts', [ | ||||
| 	}; | ||||
|  | ||||
| 	function loadPostsAfter(after) { | ||||
| 		var tid = ajaxify.variables.get('topic_id'); | ||||
| 		var tid = ajaxify.data.tid; | ||||
| 		if (!utils.isNumber(tid) || !utils.isNumber(after) || (after === 0 && components.get('post', 'index', 1).length)) { | ||||
| 			return; | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user