A community based topic aggregation platform built on atproto
1package votes
2
3import "errors"
4
5var (
6 // ErrVoteNotFound indicates the requested vote doesn't exist
7 ErrVoteNotFound = errors.New("vote not found")
8
9 // ErrSubjectNotFound indicates the post/comment being voted on doesn't exist
10 ErrSubjectNotFound = errors.New("subject not found")
11
12 // ErrInvalidDirection indicates the vote direction is not "up" or "down"
13 ErrInvalidDirection = errors.New("invalid vote direction: must be 'up' or 'down'")
14
15 // ErrInvalidSubject indicates the subject URI is malformed or invalid
16 ErrInvalidSubject = errors.New("invalid subject URI")
17
18 // ErrVoteAlreadyExists indicates a vote already exists on this subject
19 ErrVoteAlreadyExists = errors.New("vote already exists")
20
21 // ErrNotAuthorized indicates the user is not authorized to perform this action
22 ErrNotAuthorized = errors.New("not authorized")
23
24 // ErrBanned indicates the user is banned from the community
25 ErrBanned = errors.New("user is banned from this community")
26)