summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar 恐咖兵糖 <1916421725@qq.com>2023-10-04 20:19:24 +0800
committerLibravatar GitHub <noreply@github.com>2023-10-04 14:19:24 +0200
commite0f0d320f6d8e005058f7d491d0b81e06649569b (patch)
tree2bd53917c2e03d584db40cbf5ce7b2e6593aa137
parent[feature] tentatively start adding polls support (#2249) (diff)
downloadgotosocial-e0f0d320f6d8e005058f7d491d0b81e06649569b.tar.xz
[docs] statuses-query-pinned #2250 (#2251)
-rw-r--r--docs/api/swagger.yaml2
-rw-r--r--internal/api/client/accounts/statuses.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/api/swagger.yaml b/docs/api/swagger.yaml
index d3069866f..120513a0c 100644
--- a/docs/api/swagger.yaml
+++ b/docs/api/swagger.yaml
@@ -3305,7 +3305,7 @@ paths:
- default: false
description: Show only pinned statuses. In other words, exclude statuses that are not pinned to the given account ID.
in: query
- name: pinned_only
+ name: pinned
type: boolean
- default: false
description: Show only statuses with media attachments.
diff --git a/internal/api/client/accounts/statuses.go b/internal/api/client/accounts/statuses.go
index 86a6d63cf..867788501 100644
--- a/internal/api/client/accounts/statuses.go
+++ b/internal/api/client/accounts/statuses.go
@@ -86,7 +86,7 @@ import (
// in: query
// required: false
// -
-// name: pinned_only
+// name: pinned
// type: boolean
// description: Show only pinned statuses. In other words, exclude statuses that are not pinned to the given account ID.
// default: false