diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-12-15 14:07:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-15 14:07:34 +0100 |
commit | 1f762f4271685e30373b15a2e204f8edff59d349 (patch) | |
tree | 4209d84c829a89ffa0fabe25462c8213f593a778 /app/javascript | |
parent | 78ef635980ff391ea3ba4c37de836947a97958a0 (diff) |
Fix wasteful request to /api/v1/custom_emojis when not logged in (#22326)
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/mastodon/containers/mastodon.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/javascript/mastodon/containers/mastodon.js b/app/javascript/mastodon/containers/mastodon.js index 724719f74..002b71e93 100644 --- a/app/javascript/mastodon/containers/mastodon.js +++ b/app/javascript/mastodon/containers/mastodon.js @@ -23,7 +23,9 @@ export const store = configureStore(); const hydrateAction = hydrateStore(initialState); store.dispatch(hydrateAction); -store.dispatch(fetchCustomEmojis()); +if (initialState.meta.me) { + store.dispatch(fetchCustomEmojis()); +} const createIdentityContext = state => ({ signedIn: !!state.meta.me, |