mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	Add setting to avoid showing a post after it is submitted to keep the user's place on the page to address issue #4363
This commit is contained in:
		| @@ -79,7 +79,7 @@ define('forum/topic/posts', [ | ||||
| 	} | ||||
|  | ||||
| 	function scrollToPostIfSelf(post) { | ||||
| 		var isSelfPost = parseInt(post.uid, 10) === parseInt(app.user.uid, 10); | ||||
| 		var isSelfPost = config.scrollToMyPost && parseInt(post.uid, 10) === parseInt(app.user.uid, 10); | ||||
| 		if (isSelfPost) { | ||||
| 			navigator.scrollBottom(post.index); | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user