mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Fix error for disconnected users
This commit is contained in:
		@@ -903,7 +903,8 @@ ComunicWeb.components.posts.ui = {
 | 
				
			|||||||
			ComunicWeb.components.comments.ui.display(info.comments, info.ID, postRoot);
 | 
								ComunicWeb.components.comments.ui.display(info.comments, info.ID, postRoot);
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		// Register for post updates
 | 
							// Register for post updates
 | 
				
			||||||
		PostsInterface.register(info.ID);
 | 
							if(UserWebSocket.IsConnected)
 | 
				
			||||||
 | 
								PostsInterface.register(info.ID);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// Auto-unregister when the post goes out of scope
 | 
							// Auto-unregister when the post goes out of scope
 | 
				
			||||||
		const ev = async (e) => {
 | 
							const ev = async (e) => {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user