Node.js based forum software built for the modern web
docs: chat teasers are different
Julian Lam91323dce5509
diff --git a/public/openapi/components/schemas/TeaserObject.yaml b/public/openapi/components/schemas/TeaserObject.yamlindex 93eeafa86e..2018685c1b 100644--- a/public/openapi/components/schemas/TeaserObject.yaml+++ b/public/openapi/components/schemas/TeaserObject.yaml@@ -1,14 +1,24 @@TeaserObject:type: object+ nullable: trueproperties:- roomId:- type: number- fromuid:+ pid:type: number- content:+ url:type: string+ uid:+ type: number+ description: A user identifiertimestamp:type: number+ tid:+ type: number+ description: A topic identifier+ content:+ type: string+ sourceContent:+ type: string+ nullable: truetimestampISO:type: stringdescription: An ISO 8601 formatted date string (complementing `timestamp`)@@ -18,15 +28,13 @@ TeaserObject:uid:type: numberdescription: A user identifier- isLocal:- type: boolean- description: Whether the user belongs to the local installation or not.username:type: stringdescription: A friendly name for a given user accountdisplayname:type: string- description: This is either username or fullname depending on forum and user settings+ isLocal:+ type: booleanuserslug:type: stringdescription: An URL-safe variant of the username (i.e. lower-cased, spaces@@ -34,10 +42,6 @@ TeaserObject:picture:nullable: truetype: string- status:- type: string- lastonline:- type: numbericon:text:type: stringdescription: A single-letter representation of a username. This is used in the@@ -50,6 +54,10 @@ TeaserObject:`icon:text` for the user'sauto-generated iconexample: "#f44336"- lastonlineISO:- type: string- nullable: true+ topic:+ type: object+ additionalProperties: {}+ index:+ type: number+ required:+ - pid\ No newline at end of filediff --git a/public/openapi/read/user/userslug/chats/roomid.yaml b/public/openapi/read/user/userslug/chats/roomid.yamlindex 4468d9c0a1..448f350a42 100644--- a/public/openapi/read/user/userslug/chats/roomid.yaml+++ b/public/openapi/read/user/userslug/chats/roomid.yaml@@ -264,7 +264,60 @@ get:unread:type: booleanteaser:- $ref: ../../../../components/schemas/TeaserObject.yaml#/TeaserObject+ type: object+ properties:+ roomId:+ type: number+ fromuid:+ type: number+ content:+ type: string+ timestamp:+ type: number+ timestampISO:+ type: string+ description: An ISO 8601 formatted date string (complementing `timestamp`)+ user:+ type: object+ properties:+ uid:+ type: number+ description: A user identifier+ isLocal:+ type: boolean+ description: Whether the user belongs to the local installation or not.+ username:+ type: string+ description: A friendly name for a given user account+ displayname:+ type: string+ description: This is either username or fullname depending on forum and user settings+ userslug:+ type: string+ description: An URL-safe variant of the username (i.e. lower-cased, spaces+ removed, etc.)+ picture:+ nullable: true+ type: string+ status:+ type: string+ lastonline:+ type: number+ icon:text:+ type: string+ description: A single-letter representation of a username. This is used in the+ auto-generated icon given to users+ without an avatar+ icon:bgColor:+ type: string+ description: A six-character hexadecimal colour code assigned to the user. This+ value is used in conjunction with+ `icon:text` for the user's+ auto-generated icon+ example: "#f44336"+ lastonlineISO:+ type: string+ nullable: truelastUser:type: objectproperties:@@ -375,7 +428,58 @@ get:unread:type: booleanteaser:- $ref: ../../../../components/schemas/TeaserObject.yaml#/TeaserObject+ type: object+ properties:+ fromuid:+ type: number+ content:+ type: string+ timestamp:+ type: number+ timestampISO:+ type: string+ description: An ISO 8601 formatted date string (complementing `timestamp`)+ user:+ type: object+ properties:+ uid:+ type: number+ description: A user identifier+ isLocal:+ type: boolean+ description: Whether the user belongs to the local installation or not.+ username:+ type: string+ description: A friendly name for a given user account+ displayname:+ type: string+ description: This is either username or fullname depending on forum and user settings+ userslug:+ type: string+ description: An URL-safe variant of the username (i.e. lower-cased, spaces+ removed, etc.)+ picture:+ nullable: true+ type: string+ status:+ type: string+ lastonline:+ type: number+ icon:text:+ type: string+ description: A single-letter representation of a username. This is used in the+ auto-generated icon given to users+ without an avatar+ icon:bgColor:+ type: string+ description: A six-character hexadecimal colour code assigned to the user. This+ value is used in conjunction with+ `icon:text` for the user's+ auto-generated icon+ example: "#f44336"+ lastonlineISO:+ type: string+ nullable: truelastUser:type: objectproperties:diff --git a/public/openapi/write/chats.yaml b/public/openapi/write/chats.yamlindex 5206482565..37204a9b5c 100644--- a/public/openapi/write/chats.yaml+++ b/public/openapi/write/chats.yaml@@ -47,7 +47,54 @@ get:type: booleandescription: Whether or not the chat has unread messages withinteaser:- $ref: ../components/schemas/TeaserObject.yaml#/TeaserObject+ type: object+ nullable: true+ properties:+ fromuid:+ type: number+ content:+ type: string+ timestamp:+ type: number+ timestampISO:+ type: string+ user:+ type: object+ properties:+ uid:+ type: number+ description: A user identifier+ username:+ type: string+ description: A friendly name for a given user account+ displayname:+ type: string+ description: This is either username or fullname depending on forum and user settings+ userslug:+ type: string+ description: An URL-safe variant of the username (i.e. lower-cased, spaces+ removed, etc.)+ picture:+ nullable: true+ type: string+ status:+ type: string+ lastonline:+ type: number+ icon:text:+ type: string+ description: A single-letter representation of a username. This is used in the+ auto-generated icon given to users+ without an avatar+ icon:bgColor:+ type: string+ description: A six-character hexadecimal colour code assigned to the user. This+ value is used in conjunction with+ `icon:text` for the user's+ auto-generated icon+ example: "#f44336"+ lastonlineISO:+ type: stringusers:type: arrayitems: