forked from
jollywhoppers.com/witchsky.app
Bluesky app fork with some witchin' additions 馃挮
1import {DEFAULT_LOGGED_OUT_LABEL_PREFERENCES} from '#/state/queries/preferences/moderation'
2import {
3 type ThreadViewPreferences,
4 type UsePreferencesQueryResponse,
5} from '#/state/queries/preferences/types'
6
7export const DEFAULT_HOME_FEED_PREFS: UsePreferencesQueryResponse['feedViewPrefs'] =
8 {
9 hideReplies: false,
10 hideRepliesByUnfollowed: true, // Legacy, ignored
11 hideRepliesByLikeCount: 0, // Legacy, ignored
12 hideReposts: false,
13 hideQuotePosts: false,
14 lab_mergeFeedEnabled: false, // experimental
15 }
16
17export const DEFAULT_THREAD_VIEW_PREFS: ThreadViewPreferences = {
18 sort: 'hotness',
19 lab_treeViewEnabled: false,
20}
21
22export const DEFAULT_LOGGED_OUT_PREFERENCES: UsePreferencesQueryResponse = {
23 birthDate: new Date('2022-11-17'), // TODO(pwi)
24 moderationPrefs: {
25 adultContentEnabled: false,
26 labels: DEFAULT_LOGGED_OUT_LABEL_PREFERENCES,
27 labelers: [],
28 mutedWords: [],
29 hiddenPosts: [],
30 },
31 feedViewPrefs: DEFAULT_HOME_FEED_PREFS,
32 threadViewPrefs: DEFAULT_THREAD_VIEW_PREFS,
33 userAge: 13, // TODO(pwi)
34 interests: {tags: []},
35 savedFeeds: [],
36 bskyAppState: {
37 queuedNudges: [],
38 activeProgressGuide: undefined,
39 nuxs: [],
40 },
41 postInteractionSettings: {
42 threadgateAllowRules: undefined,
43 postgateEmbeddingRules: [],
44 },
45 verificationPrefs: {
46 hideBadges: false,
47 },
48 liveEventPreferences: {
49 hideAllFeeds: false,
50 hiddenFeedIds: [],
51 },
52}