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

Mutual Checker: Reduce API load on communities pages #1576

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

marcustyphoon
Copy link
Collaborator

@marcustyphoon marcustyphoon commented Aug 18, 2024

Description

Mutual Checker's getIsFollowing function tries to determine if the user is following a blog by querying react data in a few ways, but if it doesn't find the data in question there, it falls back to an API call. Community posts have the user data in question in a different place, so it uses the API call.

This factors the code in question to be a little clearer and adds the authorBlog check that will work on community posts.

See #1441.

Testing steps

This reverts commit 02cad5e3aa7ba1269a22f8a3a37843a512833072.
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.

1 participant