Support commenting with markdown.

This commit is contained in:
nyne
2025-07-04 13:23:56 +08:00
parent f605485f40
commit 1f22367cc4
13 changed files with 1089 additions and 505 deletions

View File

@@ -120,6 +120,8 @@ export interface Comment {
created_at: string;
user: User;
images: Image[];
content_truncated: boolean;
reply_count: number;
}
export interface CommentWithResource {
@@ -129,6 +131,19 @@ export interface CommentWithResource {
user: User;
images: Image[];
resource: Resource;
content_truncated: boolean;
reply_count: number;
}
export interface CommentWithRef {
id: number;
content: string;
created_at: string;
user: User;
images: Image[];
reply_count: number;
resource?: Resource;
reply_to?: Comment;
}
export interface ServerConfig {