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

Exclude posts from author feed when they don't fit into a self-thread #2347

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

devinivy
Copy link
Collaborator

@devinivy devinivy commented Mar 19, 2024

When viewing getAuthorFeed with the posts_and_author_threads filter, previously the appview would serve any reply that the author posted in their own thread in reply to one of their own posts. This could end-up including posts that were not part of a self-thread, even if they appeared to be "locally" by inspecting their root and parent.

With this change, when we encounter a reply we ensure that the full reply chain up to the root is included in the author feed. Otherwise we filter it out—this should ensure that only proper self-threads are served when using the posts_and_author_threads filter.

Copy link
Collaborator

@dholms dholms left a comment

Choose a reason for hiding this comment

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

sweet looks good!

@devinivy devinivy merged commit faa8d2f into main Mar 19, 2024
10 checks passed
@devinivy devinivy deleted the appview-self-threads-fix branch March 19, 2024 23:53
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