Add a hotness thread sort (#6649)

* Add a hotness thread sort

* Bump @atproto/api
This commit is contained in:
dan
2024-11-23 03:27:17 +00:00
committed by GitHub
parent ac5b2cf31f
commit 631277dc3d
6 changed files with 67 additions and 4 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ export const DEFAULT_HOME_FEED_PREFS: UsePreferencesQueryResponse['feedViewPrefs
}
export const DEFAULT_THREAD_VIEW_PREFS: ThreadViewPreferences = {
sort: 'newest',
sort: 'hotness',
prioritizeFollowedUsers: true,
lab_treeViewEnabled: false,
}
+1 -1
View File
@@ -22,6 +22,6 @@ export type ThreadViewPreferences = Pick<
BskyThreadViewPreference,
'prioritizeFollowedUsers'
> & {
sort: 'oldest' | 'newest' | 'most-likes' | 'random' | string
sort: 'hotness' | 'oldest' | 'newest' | 'most-likes' | 'random' | string
lab_treeViewEnabled?: boolean
}