From aa4d150bcd3da5b89cbab03897bea6d4f216ae3d Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 28 Feb 2024 23:24:05 -0500 Subject: [PATCH] Adding post alt text. --- src/types/CreatePost.ts | 1 + src/types/EditPost.ts | 1 + src/types/LemmyErrorType.ts | 1 + src/types/Post.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/src/types/CreatePost.ts b/src/types/CreatePost.ts index 3b77adb..c4ccffe 100644 --- a/src/types/CreatePost.ts +++ b/src/types/CreatePost.ts @@ -7,6 +7,7 @@ export interface CreatePost { community_id: CommunityId; url?: string; body?: string; + alt_text?: string; honeypot?: string; nsfw?: boolean; language_id?: LanguageId; diff --git a/src/types/EditPost.ts b/src/types/EditPost.ts index c8fac6f..1d0f0a0 100644 --- a/src/types/EditPost.ts +++ b/src/types/EditPost.ts @@ -7,6 +7,7 @@ export interface EditPost { name?: string; url?: string; body?: string; + alt_text?: string; nsfw?: boolean; language_id?: LanguageId; custom_thumbnail?: string; diff --git a/src/types/LemmyErrorType.ts b/src/types/LemmyErrorType.ts index 857b894..ddb7111 100644 --- a/src/types/LemmyErrorType.ts +++ b/src/types/LemmyErrorType.ts @@ -91,6 +91,7 @@ export type LemmyErrorType = | { error: "invalid_post_title" } | { error: "invalid_body_field" } | { error: "bio_length_overflow" } + | { error: "alt_text_length_overflow" } | { error: "missing_totp_token" } | { error: "missing_totp_secret" } | { error: "incorrect_totp_token" } diff --git a/src/types/Post.ts b/src/types/Post.ts index 2bf377e..753cd6b 100644 --- a/src/types/Post.ts +++ b/src/types/Post.ts @@ -27,4 +27,5 @@ export interface Post { featured_community: boolean; featured_local: boolean; url_content_type?: string; + alt_text?: string; }