Masto API: on statuses/:id/context, display posts like Mastodon gives them
At the moment, the entire conversation of posts that are in some way related to the root post are given, but this should not be the case.
A
|
B
| \
C D
| \ \
E F G
- Getting the ancestors of
E
should not returnF
,G
,D
(even if they were made beforeE
and they belong to the conversation, they are on another "branch" of it and do not serve to linkE
directly withA
). - Getting the descendants of
C
should not returnD
orG
(again, different branch of the conversation, we should only return the descendants ofC
, and not those ofB
as well)
Aside: this is solved in pleroma-fe by having Replies:
placed under the username, and the arrow next to it (in a imageboard kind of style)
But it's important to add this nonetheless because Mastodon apps expect ancestors to be those directly linked to the post, and descendants only those of the post itself, as I explained.