mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	data.loggedIn for new posts
This commit is contained in:
		| @@ -21,6 +21,7 @@ define('forum/topic/posts', [ | ||||
| 			return; | ||||
| 		} | ||||
|  | ||||
| 		data.loggedIn = app.user.uid ? true : false; | ||||
| 		data.posts.forEach(function(post) { | ||||
| 			post.selfPost = !!app.user.uid && parseInt(post.uid, 10) === parseInt(app.user.uid, 10); | ||||
| 			post.display_moderator_tools = post.selfPost || ajaxify.data.isAdminOrMod; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user