]> Untitled Git - lemmy.git/blobdiff - crates/db_schema/src/utils.rs
Feature add three six and nine months options backend (#3226)
[lemmy.git] / crates / db_schema / src / utils.rs
index fdd445637b03f24b4be4af496aa2534202304828..44230d10a8f6f0531b1be7ffd157d3aa18397d20 100644 (file)
@@ -259,7 +259,10 @@ pub fn post_to_comment_sort_type(sort: SortType) -> CommentSortType {
     | SortType::TopAll
     | SortType::TopWeek
     | SortType::TopYear
-    | SortType::TopMonth => CommentSortType::Top,
+    | SortType::TopMonth
+    | SortType::TopThreeMonths
+    | SortType::TopSixMonths
+    | SortType::TopNineMonths => CommentSortType::Top,
   }
 }