forked from LemmyNet/lemmy
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a default_comment_sort_type column for local_site and local_us…
…er. (LemmyNet#4469) * Adding a default_comment_sort_type column for local_site and local_user. - Renamed SortType to PostSortType in the DB and code. - Renamed references to default_sort_type to default_post_sort_type. - Fixes LemmyNet#4128 * Renaming migration to current date. * Simplifying PostSortType.
- Loading branch information
1 parent
a437030
commit 0246082
Showing
25 changed files
with
286 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ use lemmy_db_schema::{ | |
CommentSortType, | ||
ListingType, | ||
PostListingMode, | ||
SortType, | ||
PostSortType, | ||
}; | ||
use lemmy_db_views::structs::{CommentView, LocalImageView, PostView}; | ||
use lemmy_db_views_actor::structs::{ | ||
|
@@ -88,8 +88,14 @@ pub struct SaveUserSettings { | |
pub auto_expand: Option<bool>, | ||
/// Your user's theme. | ||
pub theme: Option<String>, | ||
pub default_sort_type: Option<SortType>, | ||
/// The default post listing type, usually "local" | ||
pub default_listing_type: Option<ListingType>, | ||
/// A post-view mode that changes how multiple post listings look. | ||
pub post_listing_mode: Option<PostListingMode>, | ||
/// The default post sort, usually "active" | ||
pub default_post_sort_type: Option<PostSortType>, | ||
/// The default comment sort, usually "hot" | ||
pub default_comment_sort_type: Option<CommentSortType>, | ||
/// The language of the lemmy interface | ||
pub interface_language: Option<String>, | ||
/// A URL for your avatar. | ||
|
@@ -120,8 +126,6 @@ pub struct SaveUserSettings { | |
pub open_links_in_new_tab: Option<bool>, | ||
/// Enable infinite scroll | ||
pub infinite_scroll_enabled: Option<bool>, | ||
/// A post-view mode that changes how multiple post listings look. | ||
pub post_listing_mode: Option<PostListingMode>, | ||
/// Whether to allow keyboard navigation (for browsing and interacting with posts and comments). | ||
pub enable_keyboard_navigation: Option<bool>, | ||
/// Whether user avatars or inline images in the UI that are gifs should be allowed to play or | ||
|
@@ -172,7 +176,7 @@ pub struct GetPersonDetails { | |
pub person_id: Option<PersonId>, | ||
/// Example: dessalines , or [email protected] | ||
pub username: Option<String>, | ||
pub sort: Option<SortType>, | ||
pub sort: Option<PostSortType>, | ||
pub page: Option<i64>, | ||
pub limit: Option<i64>, | ||
pub community_id: Option<CommunityId>, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.