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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix following local communities stuck on pending (fixes #4160) #4161

Merged
merged 4 commits into from
Nov 17, 2023

Conversation

Nutomic
Copy link
Member

@Nutomic Nutomic commented Nov 15, 2023

No description provided.

};
CommunityFollower::follow(&mut context.pool(), &community_follower_form)
.await
.ok();
Copy link
Member Author

@Nutomic Nutomic Nov 15, 2023

Choose a reason for hiding this comment

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

This federation send function was called even for local communities, which would overwrite the value of subscribed and change it back to pending. In fact it is completely unnecessary because the api already sets pending for remote community follows.

Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

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

Once tests pass, feel free to merge.

@Nutomic Nutomic enabled auto-merge (squash) November 17, 2023 09:30
@Nutomic Nutomic merged commit 25450ea into main Nov 17, 2023
2 checks passed
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.

None yet

2 participants