Fix error for disconnected users

This commit is contained in:
Pierre HUBERT 2020-04-11 08:50:46 +02:00
parent 9e4ca58274
commit 3bda79cc8b

View File

@ -903,6 +903,7 @@ ComunicWeb.components.posts.ui = {
ComunicWeb.components.comments.ui.display(info.comments, info.ID, postRoot);
// Register for post updates
if(UserWebSocket.IsConnected)
PostsInterface.register(info.ID);
// Auto-unregister when the post goes out of scope