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 follow being stuck as pending after accept #2366

Merged
merged 2 commits into from
Jul 20, 2022
Merged

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented Jul 19, 2022

This should fix it, though i couldnt test properly because lemmy-ui 0.16.5 cant handle the new subscribed values.

@Nutomic Nutomic requested a review from dessalines as a code owner July 19, 2022 14:44
@dessalines
Copy link
Member

The current lemmy-js-client handles it, check the drone log: https://cloud.drone.io/LemmyNet/lemmy/3894

@Nutomic
Copy link
Member Author

Nutomic commented Jul 19, 2022

The test is wrong. It can never see a status of pending, because tests use synchronous sending, so during the followCommunity api call, the accept is also sent and handled before the api call returns.

And follow_accepted() gets called when Accept activity is received, so its not pending anymore. Meaning pending has to be set to false.

@dessalines dessalines force-pushed the fix-follow-pending branch from 6185eb6 to ea02b34 Compare July 20, 2022 13:47
@dessalines dessalines enabled auto-merge (squash) July 20, 2022 13:47
@dessalines dessalines merged commit eee8f46 into main Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants