Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix infinite loading instead of soft 404 for non-existing remote accounts #21303

Merged
merged 1 commit into from
Nov 27, 2022

Conversation

ClearlyClaire
Copy link
Contributor

Fixes #21278, #21021

@@ -7,6 +8,8 @@ const initialState = ImmutableMap();

export default function accountsMap(state = initialState, action) {
switch(action.type) {
case ACCOUNT_LOOKUP_FAIL:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also cater here for ACCOUNT_FETCH_FAIL?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, ACCOUNT_FETCH_FAIL is for getting an Account object from its id, accounts_map is for storing a mapping from acct handle to id.

@ineffyble ineffyble added the bug Something isn't working label Nov 24, 2022
@Gargron Gargron merged commit 3ffaa96 into mastodon:main Nov 27, 2022
@ineffyble ineffyble mentioned this pull request Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessing non-existent remote user makes loader spin forever
4 participants