X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Flib.rs;h=a89d1c987313342b13da68136941d55922b0ad8c;hb=9c3efe32e7b2ef7978b7957eac10691beb551dde;hp=57349bd58e33ff68d968ad7797120b2147e60dfa;hpb=becb8b4f66bdacca23b0b169e07d845afcb3d204;p=lemmy.git diff --git a/crates/db_schema/src/lib.rs b/crates/db_schema/src/lib.rs index 57349bd5..a89d1c98 100644 --- a/crates/db_schema/src/lib.rs +++ b/crates/db_schema/src/lib.rs @@ -30,6 +30,7 @@ pub enum SortType { Active, Hot, New, + Old, TopDay, TopWeek, TopMonth, @@ -39,6 +40,14 @@ pub enum SortType { NewComments, } +#[derive(EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy)] +pub enum CommentSortType { + Hot, + Top, + New, + Old, +} + #[derive(EnumString, Display, Debug, Serialize, Deserialize, Clone, Copy, PartialEq)] pub enum ListingType { All,