From c345ca02e4f5b602582e4ce7be4e5bb2d700ec45 Mon Sep 17 00:00:00 2001 From: ~keith Date: Fri, 8 Nov 2024 19:31:02 -0500 Subject: [PATCH] Change default settings Someone needs to generate the TypeORM migrations for me because I can't get the sodding thing to work on my end and it's driving me absolutely potty. --- packages/backend/src/models/UserProfile.ts | 6 +++--- packages/frontend/src/scripts/search-engine-map.ts | 2 +- packages/frontend/src/store.ts | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/backend/src/models/UserProfile.ts b/packages/backend/src/models/UserProfile.ts index 751b1aff08..de31178a89 100644 --- a/packages/backend/src/models/UserProfile.ts +++ b/packages/backend/src/models/UserProfile.ts @@ -104,19 +104,19 @@ export class MiUserProfile { public emailNotificationTypes: string[]; @Column('boolean', { - default: true, + default: false, }) public publicReactions: boolean; @Column('enum', { enum: followingVisibilities, - default: 'public', + default: 'private', }) public followingVisibility: typeof followingVisibilities[number]; @Column('enum', { enum: followersVisibilities, - default: 'public', + default: 'private', }) public followersVisibility: typeof followersVisibilities[number]; diff --git a/packages/frontend/src/scripts/search-engine-map.ts b/packages/frontend/src/scripts/search-engine-map.ts index 03e5061597..6ced5e566d 100644 --- a/packages/frontend/src/scripts/search-engine-map.ts +++ b/packages/frontend/src/scripts/search-engine-map.ts @@ -6,8 +6,8 @@ //store the URL and if its none of these its a custom one export const searchEngineMap = { //The first one is the default search engine - 'https://www.google.com/search?q={query}': 'Google', 'https://duckduckgo.com/?q={query}': 'Duckduckgo', + 'https://www.google.com/search?q={query}': 'Google', 'https://www.bing.com/search?q={query}': 'Bing', 'https://search.yahoo.com/search?p={query}': 'Yahoo', 'https://www.ecosia.org/search?q={query}': 'Ecosia', diff --git a/packages/frontend/src/store.ts b/packages/frontend/src/store.ts index fd84ad2e4d..67a6e493a4 100644 --- a/packages/frontend/src/store.ts +++ b/packages/frontend/src/store.ts @@ -146,7 +146,7 @@ export const defaultStore = markRaw(new Storage('base', { }, reactionAcceptance: { where: 'account', - default: 'nonSensitiveOnly' as 'likeOnly' | 'likeOnlyForRemote' | 'nonSensitiveOnly' | 'nonSensitiveOnlyForLocalLikeOnlyForRemote' | null, + default: null as 'likeOnly' | 'likeOnlyForRemote' | 'nonSensitiveOnly' | 'nonSensitiveOnlyForLocalLikeOnlyForRemote' | null, }, like: { where: 'account', @@ -162,11 +162,11 @@ export const defaultStore = markRaw(new Storage('base', { }, showVisibilitySelectorOnBoost: { where: 'account', - default: true, + default: false, }, visibilityOnBoost: { where: 'account', - default: 'public' as 'public' | 'home' | 'followers', + default: 'followers' as 'public' | 'home' | 'followers', }, trustedDomains: { where: 'account', @@ -277,7 +277,7 @@ export const defaultStore = markRaw(new Storage('base', { }, animatedMfm: { where: 'device', - default: false, + default: !window.matchMedia('(prefers-reduced-motion)').matches, }, advancedMfm: { where: 'device',