logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 96090ea98f070f8844bcd2c70e26bd5c82331812
parent ebe095bd769481cc114009e8193494d482f9ff4d
Author: Henry Jameson <me@hjkos.com>
Date:   Mon, 15 Aug 2022 21:03:27 +0300

fix anon user issues

Diffstat:

Msrc/modules/serverSideStorage.js4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/serverSideStorage.js b/src/modules/serverSideStorage.js @@ -26,7 +26,7 @@ export const defaultState = { collapseNav: false }, collections: { - pinnedNavItems: ['home', 'dms', 'chats', 'about'] + pinnedNavItems: ['home', 'dms', 'chats'] } }, // raw data @@ -262,7 +262,7 @@ export const mutations = { const live = userData.storage state.raw = live let cache = state.cache - if (cache._user !== userData.fqn) { + if (cache && cache._user !== userData.fqn) { console.warn('cache belongs to another user! reinitializing local cache!') cache = null }