mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-11-03 20:45:58 +01:00 
			
		
		
		
	@@ -695,7 +695,11 @@ var async = require('async'),
 | 
			
		||||
			privilegeCache = {},
 | 
			
		||||
			userCache = {};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		function loadTopicInfo(topicData, next) {
 | 
			
		||||
			if (!topicData) {
 | 
			
		||||
				return next(null, null);
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			function isTopicVisible(topicData, topicInfo) {
 | 
			
		||||
				var deleted = parseInt(topicData.deleted, 10) !== 0;
 | 
			
		||||
@@ -736,6 +740,10 @@ var async = require('async'),
 | 
			
		||||
				categoryCache[topicData.cid] = topicInfo.categoryData;
 | 
			
		||||
				userCache[topicData.uid] = topicInfo.user;
 | 
			
		||||
 | 
			
		||||
				if (!topicInfo.teaser) {
 | 
			
		||||
					return next(null, null);
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
				if (!isTopicVisible(topicData, topicInfo)) {
 | 
			
		||||
					return next(null, null);
 | 
			
		||||
				}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user