🐛 Store empty comment for ozone events ()

* 🐛 Store empty comment for ozone events

*  Make comment property optional

* 📝 Better comment event description
This commit is contained in:
Foysal Ahamed 2025-02-24 13:15:20 +00:00 committed by GitHub
parent 6e382f67aa
commit 5e61126157
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 13 additions and 14 deletions
lexicons/tools/ozone/moderation
packages
api/src/client
lexicons.ts
types/tools/ozone/moderation
ozone/src/lexicon
lexicons.ts
types/tools/ozone/moderation
pds/src/lexicon
lexicons.ts
types/tools/ozone/moderation

@ -337,8 +337,7 @@
},
"modEventComment": {
"type": "object",
"description": "Add a comment to a subject",
"required": ["comment"],
"description": "Add a comment to a subject. An empty comment will clear any previously set sticky comment.",
"properties": {
"comment": {
"type": "string"

@ -11840,8 +11840,8 @@ export const schemaDict = {
},
modEventComment: {
type: 'object',
description: 'Add a comment to a subject',
required: ['comment'],
description:
'Add a comment to a subject. An empty comment will clear any previously set sticky comment.',
properties: {
comment: {
type: 'string',

@ -284,10 +284,10 @@ export function validateModEventResolveAppeal<V>(v: V) {
return validate<ModEventResolveAppeal & V>(v, id, hashModEventResolveAppeal)
}
/** Add a comment to a subject */
/** Add a comment to a subject. An empty comment will clear any previously set sticky comment. */
export interface ModEventComment {
$type?: 'tools.ozone.moderation.defs#modEventComment'
comment: string
comment?: string
/** Make the comment persistent on the subject */
sticky?: boolean
}

@ -11840,8 +11840,8 @@ export const schemaDict = {
},
modEventComment: {
type: 'object',
description: 'Add a comment to a subject',
required: ['comment'],
description:
'Add a comment to a subject. An empty comment will clear any previously set sticky comment.',
properties: {
comment: {
type: 'string',

@ -284,10 +284,10 @@ export function validateModEventResolveAppeal<V>(v: V) {
return validate<ModEventResolveAppeal & V>(v, id, hashModEventResolveAppeal)
}
/** Add a comment to a subject */
/** Add a comment to a subject. An empty comment will clear any previously set sticky comment. */
export interface ModEventComment {
$type?: 'tools.ozone.moderation.defs#modEventComment'
comment: string
comment?: string
/** Make the comment persistent on the subject */
sticky?: boolean
}

@ -11840,8 +11840,8 @@ export const schemaDict = {
},
modEventComment: {
type: 'object',
description: 'Add a comment to a subject',
required: ['comment'],
description:
'Add a comment to a subject. An empty comment will clear any previously set sticky comment.',
properties: {
comment: {
type: 'string',

@ -284,10 +284,10 @@ export function validateModEventResolveAppeal<V>(v: V) {
return validate<ModEventResolveAppeal & V>(v, id, hashModEventResolveAppeal)
}
/** Add a comment to a subject */
/** Add a comment to a subject. An empty comment will clear any previously set sticky comment. */
export interface ModEventComment {
$type?: 'tools.ozone.moderation.defs#modEventComment'
comment: string
comment?: string
/** Make the comment persistent on the subject */
sticky?: boolean
}