feat: add default comment sorts, close #93

This commit is contained in:
Xyphyn committed 2023-08-10 17:01:25 -07:00
1 parent c5afc07b41
commit f9becd1bd0
7 files changed
+27 -13

No files matched your search

+4 -2
View File
@@ -1,4 +1,4 @@
import type { SortType } from 'lemmy-js-client'
import type { CommentSortType, SortType } from 'lemmy-js-client'
import { writable } from 'svelte/store'
interface Settings {
@@ -16,6 +16,7 @@ interface Settings {
defaultSort: {
sort: SortType
feed: 'All' | 'Subscribed' | 'Local'
comments: CommentSortType
}
hidePosts: {
deleted: boolean
@@ -40,13 +41,14 @@ const defaultSettings: Settings = {
revertColors: false,
showInstances: {
user: false,
community: false,
community: true,
comments: false,
},
showCompactPosts: false,
defaultSort: {
sort: 'Active',
feed: 'Local',
comments: 'Hot',
},
hidePosts: {
deleted: true,