full diff

social.coves.community.comment.getComments

coves.social +16 −3
From
bafyreihbtjhob4vldj324iaazf5cayvvtennw72bxomxo2reql4tvs3mwi indexed 2026-07-24 05:18 UTC View this version
To
bafyreierl3xcb4x6ywnjilvfjmhsczei6lw4mu5mmle63oxcqy2x3s7cuq indexed 2026-11-22 06:58 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "description": "Get comments for a post with threading and sorting support. Supports hot/top/new sorting, configurable nesting depth, and pagination.",
66 "errors": [
77 {
88 "description": "Post not found",
99 "name": "NotFound"
1010 },
1111 {
1212 "description": "No comment with the given parentRkey exists within the post",
1313 "name": "ParentNotFound"
1414 },
1515 {
16 "description": "Invalid parameters (malformed URI, invalid sort/timeframe combination, etc.)",
16 "description": "Invalid parameters (malformed URI, invalid sort, a timeframe on a feed other than comments-top, etc.)",
1717 "name": "InvalidRequest"
18 },
19 {
20 "description": "The feed is not a registered feed generator",
21 "name": "UnknownFeed"
22 },
23 {
24 "description": "The feed is not a comment feed for threads",
25 "name": "UnsupportedFeedScope"
1826 }
1927 ],
2028 "output": {
2129 "encoding": "application/json",
2230 "schema": {
2331 "properties": {
2432 "comments": {
2533 "description": "Top-level comments with nested replies up to requested depth",
2634 "items": {
2735 "ref": "social.coves.community.comment.defs#threadViewComment",
2836 "type": "ref"
2937 },
3038 "type": "array"
3139 },
3240 "cursor": {
3341 "description": "Pagination cursor for fetching next page of top-level comments",
3442 "maxLength": 500,
3543 "type": "string"
3644 },
3745 "post": {
3846 "description": "The post these comments belong to",
3947 "ref": "social.coves.community.post.defs#postView",
4048 "type": "ref"
4149 }
4250 },
4351 "required": [
4452 "comments",
4553 "post"
4654 ],
4755 "type": "object"
4856 }
4957 },
5058 "parameters": {
5159 "properties": {
5260 "cursor": {
5361 "description": "Pagination cursor from previous response",
5462 "maxLength": 500,
5563 "type": "string"
5664 },
5765 "depth": {
5866 "default": 10,
5967 "description": "Maximum reply nesting depth to return. 0 returns only top-level comments.",
6068 "maximum": 100,
6169 "minimum": 0,
6270 "type": "integer"
6371 },
72 "feed": {
73 "description": "AT-URI of the comment feed generator (kind comments, thread scope) that orders the thread, such as the instance's comments-hot, comments-top or comments-new. Takes precedence over sort. When neither is given, the instance's comments-hot is used.",
74 "format": "at-uri",
75 "type": "string"
76 },
6477 "limit": {
6578 "default": 50,
6679 "description": "Maximum number of top-level comments to return per page",
6780 "maximum": 100,
6881 "minimum": 1,
6982 "type": "integer"
7083 },
7184 "parentRkey": {
7285 "description": "Record key of a comment within the post. When provided, the response contains only the subtree rooted at that comment: the comment itself as the sole top-level entry, with its descendants nested beneath it. depth is relative to this comment (0 returns only the comment itself), and limit/cursor paginate its direct replies.",
7386 "format": "record-key",
7487 "type": "string"
7588 },
7689 "post": {
7790 "description": "AT-URI of the post to get comments for",
7891 "format": "at-uri",
7992 "type": "string"
8093 },
8194 "sort": {
8295 "default": "hot",
83 "description": "Sort order: hot (trending), top (highest score), new (most recent)",
96 "description": "Deprecated alias of feed: hot, top and new select the instance's comments-hot, comments-top and comments-new generators. Ignored when feed is given.",
8497 "knownValues": [
8598 "hot",
8699 "top",
87100 "new"
88101 ],
89102 "maxLength": 64,
90103 "type": "string"
91104 },
92105 "timeframe": {
93 "description": "Timeframe for 'top' sort. Ignored for other sort types.",
106 "description": "Timeframe the top level is ranked within. Accepted only when the resolved feed is comments-top; any other feed rejects it as InvalidRequest. Unset means all time.",
94107 "knownValues": [
95108 "hour",
96109 "day",
97110 "week",
98111 "month",
99112 "year",
100113 "all"
101114 ],
102115 "maxLength": 64,
103116 "type": "string"
104117 }
105118 },
106119 "required": [
107120 "post"
108121 ],
109122 "type": "params"
110123 },
111124 "type": "query"
112125 }
113126 },
114127 "id": "social.coves.community.comment.getComments",
115128 "lexicon": 1
116129}

Compare other versions