Adding ScoreAndDownvote display mode.

This commit is contained in:
Dessalines 2024-02-24 18:20:16 -05:00
parent 04faedd458
commit 2a60d913cc
2 changed files with 3 additions and 0 deletions

View File

@ -173,6 +173,8 @@ pub enum PostListingMode {
pub enum VoteDisplayMode {
/// Shows the score, upvotes, and downvotes.
Full,
/// Shows the score, and downvotes.
ScoreAndDownvote,
/// Shows the score, and upvote percentage. (the default setting)
ScoreAndUpvotePercentage,
/// Shows the upvote percentage only.

View File

@ -1,5 +1,6 @@
CREATE TYPE vote_display_mode_enum AS enum (
'Full',
'ScoreAndDownvote',
'ScoreAndUpvotePercentage',
'UpvotePercentage',
'Score',