From fb41660a8ac72735c10419b958cb2c5923ad4fea Mon Sep 17 00:00:00 2001 From: Dessalines Date: Fri, 9 Apr 2021 11:05:49 -0400 Subject: [PATCH] Adding show scores to LocalUserSettings and SaveUserSettings --- src/interfaces/api/person.ts | 15 ++++++++------- src/interfaces/source.ts | 1 + 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/interfaces/api/person.ts b/src/interfaces/api/person.ts index 1e79cec..7efbe93 100644 --- a/src/interfaces/api/person.ts +++ b/src/interfaces/api/person.ts @@ -39,19 +39,20 @@ export interface CaptchaResponse { } export interface SaveUserSettings { - show_nsfw: boolean; - theme: string; // Default 'browser' - default_sort_type: number; // The Sort types from above, zero indexed as a number - default_listing_type: number; // Post listing types are `All, Subscribed, Community` - lang: string; + show_nsfw?: boolean; + theme?: string; // Default 'browser' + default_sort_type?: number; // The Sort types from above, zero indexed as a number + default_listing_type?: number; // Post listing types are `All, Subscribed, Community` + lang?: string; avatar?: string; banner?: string; display_name?: string; email?: string; bio?: string; matrix_user_id?: string; - show_avatars: boolean; - send_notifications_to_email: boolean; + show_avatars?: boolean; + show_scores?: boolean; + send_notifications_to_email?: boolean; auth: string; } diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index 8be30ca..3addb2c 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -9,6 +9,7 @@ export interface LocalUserSettings { lang: string; show_avatars: boolean; send_notifications_to_email: boolean; + show_scores: boolean; } export interface PersonSafe {