From 07470530088876760a49e2f20ab1655f8e54baf4 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 18 May 2022 16:43:50 +0200 Subject: [PATCH] Add fields for post language tagging --- src/interfaces/api/person.ts | 3 ++- src/interfaces/api/post.ts | 1 + src/interfaces/source.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/interfaces/api/person.ts b/src/interfaces/api/person.ts index ffc4e55..b36027c 100644 --- a/src/interfaces/api/person.ts +++ b/src/interfaces/api/person.ts @@ -86,7 +86,7 @@ export interface SaveUserSettings { * Post listing types are `All, Subscribed, Community` */ default_listing_type?: number; - lang?: string; + interface_language?: string; avatar?: string; banner?: string; display_name?: string; @@ -100,6 +100,7 @@ export interface SaveUserSettings { show_bot_accounts?: boolean; show_read_posts?: boolean; show_new_post_notifs?: boolean; + discussion_languages: string[]; auth: string; } diff --git a/src/interfaces/api/post.ts b/src/interfaces/api/post.ts index 2012dd1..5a26567 100644 --- a/src/interfaces/api/post.ts +++ b/src/interfaces/api/post.ts @@ -12,6 +12,7 @@ export interface CreatePost { url?: string; body?: string; nsfw?: boolean; + language?: string; community_id: number; auth: string; honeypot?: string; diff --git a/src/interfaces/source.ts b/src/interfaces/source.ts index 8d01aa2..4c0037e 100644 --- a/src/interfaces/source.ts +++ b/src/interfaces/source.ts @@ -109,6 +109,7 @@ export interface Post { thumbnail_url?: string; ap_id: string; local: boolean; + language: string; } export interface PasswordResetRequest {