From 34789d47527a0ae0b71810e5d30dbd1b2b686b10 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Fri, 2 Jan 2026 12:50:18 -0500 Subject: [PATCH] Reset moderation settings on logout --- js/services/authService.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/js/services/authService.js b/js/services/authService.js index 58ad6202..69714205 100644 --- a/js/services/authService.js +++ b/js/services/authService.js @@ -20,6 +20,7 @@ import { persistProfileCacheToStorage as persistProfileCacheState, getProfileCacheEntry as getCachedProfileEntry, setProfileCacheEntry as setCachedProfileEntry, + resetModerationSettings, } from "../state/cache.js"; import getDefaultAuthProvider, { providers as defaultAuthProviders, @@ -742,6 +743,15 @@ export default class AuthService { setCurrentUserNpub(null); setActiveProfilePubkey(null, { persist: true }); + try { + resetModerationSettings({ persist: true }); + } catch (error) { + this.log( + "[AuthService] Failed to reset moderation settings on logout", + error, + ); + } + if (this.userBlocks && typeof this.userBlocks.reset === "function") { try { this.userBlocks.reset();