Add distinguish

This commit is contained in:
Dessalines 2022-08-05 12:18:35 -04:00
parent 96879bf1b3
commit 477d28776d
2 changed files with 12 additions and 1 deletions

View file

@ -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.
*/

View file

@ -454,6 +454,7 @@ export class Comment {
ap_id: string;
local: boolean;
path: string;
distinguished: boolean;
}
export class PersonMention {