summaryrefslogtreecommitdiff
path: root/internal/api/model
diff options
context:
space:
mode:
authorLibravatar Vyr Cossont <VyrCossont@users.noreply.github.com>2024-09-09 15:56:58 -0700
committerLibravatar GitHub <noreply@github.com>2024-09-09 15:56:58 -0700
commit540edef0c20dad4ea13d8af091ccf69796b848b6 (patch)
treed53106b4170f571a4472e60d35f9b7e2445269d4 /internal/api/model
parent[feature/frontend] Add options to include Unlisted posts or hide all posts (#... (diff)
downloadgotosocial-540edef0c20dad4ea13d8af091ccf69796b848b6.tar.xz
[feature] Implement exclusive lists (#3280)
Fixes #2616
Diffstat (limited to 'internal/api/model')
-rw-r--r--internal/api/model/list.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/api/model/list.go b/internal/api/model/list.go
index 03ea3420d..2f3e3855f 100644
--- a/internal/api/model/list.go
+++ b/internal/api/model/list.go
@@ -30,6 +30,9 @@ type List struct {
// list = Show replies to members of the list
// none = Show replies to no one
RepliesPolicy string `json:"replies_policy"`
+ // Exclusive setting for this list.
+ // If true, hide posts from members of this list from your home timeline.
+ Exclusive bool `json:"exclusive"`
}
// ListCreateRequest models list creation parameters.
@@ -53,6 +56,11 @@ type ListCreateRequest struct {
// - list
// - none
RepliesPolicy string `form:"replies_policy" json:"replies_policy" xml:"replies_policy"`
+ // Exclusive setting for this list.
+ // If true, hide posts from members of this list from your home timeline.
+ // default: false
+ // in: formData
+ Exclusive bool `form:"exclusive" json:"exclusive" xml:"exclusive"`
}
// ListUpdateRequest models list update parameters.
@@ -70,6 +78,10 @@ type ListUpdateRequest struct {
// Sample: list
// in: formData
RepliesPolicy *string `form:"replies_policy" json:"replies_policy" xml:"replies_policy"`
+ // Exclusive setting for this list.
+ // If true, hide posts from members of this list from your home timeline.
+ // in: formData
+ Exclusive *bool `form:"exclusive" json:"exclusive" xml:"exclusive"`
}
// ListAccountsChangeRequest is a list of account IDs to add to or remove from a list.