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

Updated query for retrieving thread parents / children #163

Conversation

mike182uk
Copy link
Member

refs AP-579

Updated the query for retrieving thread parents / children so that it takes into account the activity type. This is needed because when we query on the object it is possible for there to be multiple activities with a matching object if the actvity embeds the object (i.e in the case of a Like activity). This is important when looking up the immediate parent of an activity (as we only expect there to be 1 parent). Scoping the type of activity should be fine for our use case of "threads" (a list of comments)

refs [AP-579](https://linear.app/ghost/issue/AP-579/investigate-parent-post-visibility-issues-in-replies-to-articles)

Updated the query for retrieving thread parents / children so that it takes into
account the activity type. This is needed because when we query on the object
it is possible for there to be multiple activities with a matching object if
the actvity embeds the object (i.e in the case of a `Like` activity). This is
important when looking up the immediate parent of an activity (as we only expect
there to be 1 parent). Scoping the type of activity should be fine for our
use case of "threads" (a list of comments)
@mike182uk mike182uk merged commit 0af31bc into main Nov 12, 2024
2 checks passed
@mike182uk mike182uk deleted the mike-ap-579-investigate-parent-post-visibility-issues-in-replies-to branch November 12, 2024 15:47
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