diff --git a/assets/js/components/posts/ui.js b/assets/js/components/posts/ui.js index bd9703c3..5105c370 100644 --- a/assets/js/components/posts/ui.js +++ b/assets/js/components/posts/ui.js @@ -903,7 +903,8 @@ ComunicWeb.components.posts.ui = { ComunicWeb.components.comments.ui.display(info.comments, info.ID, postRoot); // Register for post updates - PostsInterface.register(info.ID); + if(UserWebSocket.IsConnected) + PostsInterface.register(info.ID); // Auto-unregister when the post goes out of scope const ev = async (e) => {