-
-
Notifications
You must be signed in to change notification settings - Fork 883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a default_comment_sort_type column for local_site and local_user. #4469
Changes from all commits
be89c12
351dc66
0890ad9
f4d83f4
c71d159
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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>, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still debating whether to separate this into The combined view is still limited by #2444 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The mapping is necessary anyway because of search. Its pretty awkward but I dont see any good way to get rid of it. |
||
pub page: Option<i64>, | ||
pub limit: Option<i64>, | ||
pub community_id: Option<CommunityId>, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grouped these together.