Fix /comment JSON response #167
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: rDrama/rDrama#167
Loading…
Reference in New Issue
There is no content yet.
Delete Branch ":comment-json"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Since
replies
is no longer added to the response, returning the JSON for the top level comment makes it impossible to get the JSON for a reply.Btw - you might want to remove the
author
field here. It attaches the full user bio and badge list to every comment, which turns something likeGET https://rdrama.net/post/18459
into a 21MB response.author_name
is pretty much all anyone needs anywayAny issues with merging this? To elaborate, the problem is:
GET https://rdrama.net/comment/4526754
-> returns only the JSON for4526754
GET https://rdrama.net/comment/4526930
-> returns only the JSON for4526754
Seems unlikely anyone's relying on this behavior. The only way to get the JSON for
4526930
currently is from/comments
or/notifications
.no issues lol i was just busy
My bad, ty
king i restored the replies field but made it return ids only instead of full json
Awesome, thanks