Merge pull request #16 from LemmyNet/show_score_setting

Adding show scores to LocalUserSettings and SaveUserSettings
This commit is contained in:
Dessalines 2021-04-09 11:11:34 -04:00 committed by GitHub
commit 904591182b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 7 deletions

View file

@ -39,19 +39,20 @@ export interface CaptchaResponse {
} }
export interface SaveUserSettings { export interface SaveUserSettings {
show_nsfw: boolean; show_nsfw?: boolean;
theme: string; // Default 'browser' theme?: string; // Default 'browser'
default_sort_type: number; // The Sort types from above, zero indexed as a number 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` default_listing_type?: number; // Post listing types are `All, Subscribed, Community`
lang: string; lang?: string;
avatar?: string; avatar?: string;
banner?: string; banner?: string;
display_name?: string; display_name?: string;
email?: string; email?: string;
bio?: string; bio?: string;
matrix_user_id?: string; matrix_user_id?: string;
show_avatars: boolean; show_avatars?: boolean;
send_notifications_to_email: boolean; show_scores?: boolean;
send_notifications_to_email?: boolean;
auth: string; auth: string;
} }

View file

@ -9,6 +9,7 @@ export interface LocalUserSettings {
lang: string; lang: string;
show_avatars: boolean; show_avatars: boolean;
send_notifications_to_email: boolean; send_notifications_to_email: boolean;
show_scores: boolean;
} }
export interface PersonSafe { export interface PersonSafe {