]> Untitled Git - lemmy.git/blobdiff - crates/db_schema/src/lib.rs
First pass at adding comment trees. (#2362)
[lemmy.git] / crates / db_schema / src / lib.rs
index 57349bd58e33ff68d968ad7797120b2147e60dfa..a89d1c987313342b13da68136941d55922b0ad8c 100644 (file)
@@ -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,