Compare commits
2 commits
main
...
distinguis
Author | SHA1 | Date | |
---|---|---|---|
|
14f7f5a05a | ||
|
477d28776d |
3 changed files with 13 additions and 2 deletions
|
@ -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",
|
||||
|
|
|
@ -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