Add alt text (#242)

* Adding post alt text.

* 0.19.4-alpha.5

* 0.19.4-alpha.6
This commit is contained in:
Dessalines 2024-02-29 23:03:37 -05:00 committed by GitHub
parent 902ddf6ac8
commit e24ef22b5a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "lemmy-js-client", "name": "lemmy-js-client",
"description": "A javascript / typescript client for Lemmy", "description": "A javascript / typescript client for Lemmy",
"version": "0.19.4-alpha.4", "version": "0.19.4-alpha.6",
"author": "Dessalines <tyhou13@gmx.com>", "author": "Dessalines <tyhou13@gmx.com>",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "./dist/index.js", "main": "./dist/index.js",

View file

@ -7,6 +7,7 @@ export interface CreatePost {
community_id: CommunityId; community_id: CommunityId;
url?: string; url?: string;
body?: string; body?: string;
alt_text?: string;
honeypot?: string; honeypot?: string;
nsfw?: boolean; nsfw?: boolean;
language_id?: LanguageId; language_id?: LanguageId;

View file

@ -7,6 +7,7 @@ export interface EditPost {
name?: string; name?: string;
url?: string; url?: string;
body?: string; body?: string;
alt_text?: string;
nsfw?: boolean; nsfw?: boolean;
language_id?: LanguageId; language_id?: LanguageId;
custom_thumbnail?: string; custom_thumbnail?: string;

View file

@ -91,6 +91,7 @@ export type LemmyErrorType =
| { error: "invalid_post_title" } | { error: "invalid_post_title" }
| { error: "invalid_body_field" } | { error: "invalid_body_field" }
| { error: "bio_length_overflow" } | { error: "bio_length_overflow" }
| { error: "alt_text_length_overflow" }
| { error: "missing_totp_token" } | { error: "missing_totp_token" }
| { error: "missing_totp_secret" } | { error: "missing_totp_secret" }
| { error: "incorrect_totp_token" } | { error: "incorrect_totp_token" }

View file

@ -27,4 +27,5 @@ export interface Post {
featured_community: boolean; featured_community: boolean;
featured_local: boolean; featured_local: boolean;
url_content_type?: string; url_content_type?: string;
alt_text?: string;
} }