Post scheduling (#347)

* Post scheduling

* rename field

* 0.20.0-alpha.5

* fix type

* 0.20.0-alpha.6

* add EditPost.scheduled_publish_time

* 0.19.6-alpha.1

* add error

* fix
This commit is contained in:
Nutomic 2024-09-24 21:00:49 +02:00 committed by GitHub
parent df67ca2220
commit 5789a9a685
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 0 deletions

View file

@ -12,4 +12,5 @@ export interface CreatePost {
nsfw?: boolean; nsfw?: boolean;
language_id?: LanguageId; language_id?: LanguageId;
custom_thumbnail?: string; custom_thumbnail?: string;
scheduled_publish_time?: number;
} }

View file

@ -11,4 +11,5 @@ export interface EditPost {
nsfw?: boolean; nsfw?: boolean;
language_id?: LanguageId; language_id?: LanguageId;
custom_thumbnail?: string; custom_thumbnail?: string;
scheduled_publish_time?: number;
} }

View file

@ -159,5 +159,7 @@ export type LemmyErrorType =
| { error: "couldnt_delete_oauth_provider" } | { error: "couldnt_delete_oauth_provider" }
| { error: "unknown"; message: string } | { error: "unknown"; message: string }
| { error: "cant_delete_site" } | { error: "cant_delete_site" }
| { error: "post_schedule_time_must_be_in_future" }
| { error: "too_many_scheduled_posts" }
| { error: "url_length_overflow" } | { error: "url_length_overflow" }
| { error: "not_found" }; | { error: "not_found" };

View file

@ -28,4 +28,5 @@ export interface Post {
featured_local: boolean; featured_local: boolean;
url_content_type?: string; url_content_type?: string;
alt_text?: string; alt_text?: string;
scheduled_publish_time?: number;
} }