Compare commits

...

2 commits

Author SHA1 Message Date
Dessalines
14f7f5a05a v0.17.0-rc.41 2022-08-05 12:18:53 -04:00
Dessalines
477d28776d Add distinguish 2022-08-05 12:18:35 -04:00
3 changed files with 13 additions and 2 deletions

View file

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

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 {