From 62c0c344e0e20be1bccaf44ff2a44c1c22415889 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Fri, 2 Jan 2026 13:10:05 -0500 Subject: [PATCH] Reload modal comments on logout --- js/app.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index e4292b61..3cfd4c22 100644 --- a/js/app.js +++ b/js/app.js @@ -4022,7 +4022,18 @@ class Application { } this.applyLoggedOutUiState(); - this.commentController?.refreshAuthState?.(); + + const activeModalVideo = + typeof this.videoModal?.getCurrentVideo === "function" + ? this.videoModal.getCurrentVideo() + : this.commentController?.currentVideo || null; + + if (this.commentController && activeModalVideo) { + // Regression guard: ensure logout refreshes the modal thread so comments stay visible without reopening. + this.commentController.load(activeModalVideo); + } else { + this.commentController?.refreshAuthState?.(); + } try { await this.handleModerationSettingsChange({