mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Fix error for disconnected users
This commit is contained in:
parent
9e4ca58274
commit
3bda79cc8b
@ -903,6 +903,7 @@ 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
|
||||||
|
if(UserWebSocket.IsConnected)
|
||||||
PostsInterface.register(info.ID);
|
PostsInterface.register(info.ID);
|
||||||
|
|
||||||
// Auto-unregister when the post goes out of scope
|
// Auto-unregister when the post goes out of scope
|
||||||
|
Loading…
Reference in New Issue
Block a user