From 4a4ffa45b425fe53a1d638408315c7ea5aa0247b Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sat, 10 Jan 2026 20:37:11 -0500 Subject: [PATCH] Refresh feeds on admin blacklist changes for guests --- js/app.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/js/app.js b/js/app.js index 24317161..ab045ad1 100644 --- a/js/app.js +++ b/js/app.js @@ -513,6 +513,31 @@ class Application { if (typeof accessControl.onBlacklistChange === "function") { accessControl.onBlacklistChange(() => { syncSessionActorBlacklist("blacklist-change"); + if (this.isUserLoggedIn()) { + return; + } + + const refreshReason = "admin-blacklist-change"; + this.refreshAllVideoGrids({ + reason: refreshReason, + forceMainReload: true, + }).catch((error) => { + devLogger.warn( + "[app.init()] Failed to refresh video grids after admin blacklist change:", + error, + ); + }); + + if (typeof this.refreshVisibleModerationUi === "function") { + try { + this.refreshVisibleModerationUi({ reason: refreshReason }); + } catch (error) { + devLogger.warn( + "[app.init()] Failed to refresh moderation UI after admin blacklist change:", + error, + ); + } + } }); }