mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-12-04 18:21:12 +00:00
Add distinguish
This commit is contained in:
parent
96879bf1b3
commit
477d28776d
2 changed files with 12 additions and 1 deletions
|
@ -27,8 +27,18 @@ export class CreateComment {
|
|||
}
|
||||
|
||||
export class EditComment {
|
||||
content: string;
|
||||
comment_id: number;
|
||||
@Transform(({ value }) => toOption(value), { toClassOnly: true })
|
||||
@Transform(({ value }) => toUndefined(value), { toPlainOnly: true })
|
||||
@Expose()
|
||||
content: Option<string>;
|
||||
/**
|
||||
* "Distinguishes" a comment, or speak officially. Only doable by community mods or admins.
|
||||
*/
|
||||
@Transform(({ value }) => toOption(value), { toClassOnly: true })
|
||||
@Transform(({ value }) => toUndefined(value), { toPlainOnly: true })
|
||||
@Expose()
|
||||
distinguished: Option<boolean>;
|
||||
/**
|
||||
* An optional front end ID, to tell which is comment is coming back.
|
||||
*/
|
||||
|
|
|
@ -454,6 +454,7 @@ export class Comment {
|
|||
ap_id: string;
|
||||
local: boolean;
|
||||
path: string;
|
||||
distinguished: boolean;
|
||||
}
|
||||
|
||||
export class PersonMention {
|
||||
|
|
Loading…
Reference in a new issue