-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Show decendants in conversation api #3796
Comments
Currently doesnt show replies to a given note, blocked by https://github.com/syuilo/misskey/issues/3796 Closes #11
Related to #2113 |
How about notes/replies? |
子のtreeを一度に再帰取得したいのだと思う notes/conversation 親を再帰取得していく
notes/replies 子を取得する (距離1のみ)
こう ★
|
i guess you could do it in multiple response, though that would be a LOT of unessary overhead, having to make a new request for each reply in a thread |
Either way, this would allow solving #2113 and would be a major improvement to usability as currently it is impossible to view threads fully. |
Current SituationMisskey Web UI calls
Misskeys unique ability of quote renotes creates a special situation in this case, when showing child notes: quotes can be children of two notes at once, child of the quoted note and child in form of a reply. See for example note
This means that just using nested objects may duplicate data; as you can see in the example above this would not only duplicate Proposed solutionThe API endpoint in question returns a list of replies and the client has to sort them into a thread using the
The server load should not be made too high through this by still limiting the number of notes which may be fetched in one call. However I think this limit could be higher than the current one. This is necessary so this request does not become an easy target for DoS. (see also ActivityPub specification § B.3) |
Summary
The /notes/conversation api currently just returns one array of the notes before the current note in the reply chain, ignoring the ones below.
This means clients cant see any replies TO a selected note.
It would be better to return two arrays, one that contains replies down the chain and one that contains replies up the chain.
Environment
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: