A community based topic aggregation platform built on atproto
at main 827 B view raw
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 // ErrInvalidDirection indicates the vote direction is not "up" or "down" 10 ErrInvalidDirection = errors.New("invalid vote direction: must be 'up' or 'down'") 11 12 // ErrInvalidSubject indicates the subject URI is malformed or invalid 13 ErrInvalidSubject = errors.New("invalid subject URI") 14 15 // ErrVoteAlreadyExists indicates a vote already exists on this subject 16 ErrVoteAlreadyExists = errors.New("vote already exists") 17 18 // ErrNotAuthorized indicates the user is not authorized to perform this action 19 ErrNotAuthorized = errors.New("not authorized") 20 21 // ErrBanned indicates the user is banned from the community 22 ErrBanned = errors.New("user is banned from this community") 23)