Options
All
  • Public
  • Public/Protected
  • All
Menu

Entity representing a post.

Hierarchy

Index

Constructors

constructor

Properties

_id

_id: string

The ID (primary key) of the entity.

approved

approved: boolean

Whether the post has been approved or not.

author

Author of the post.

body

body: string

Body of the post.

Optional children

children: Ref<Post, undefined | string>[]

Children of the post (i.e. comments).

community

community: Ref<Community, undefined | string>

The Community that the post belongs to.

contentType

contentType: string

Content type of the post (either text or markdown).

Optional host

host: string

Host that the entity belongs to.

Because this is a federated system, there are many instances where entities are scoped to a specific instance (rather than globally scoped).

Optional parentPost

parentPost: null | Ref<Post, undefined | string>

The parent of this post (only exists if this is a comment).

title

title: null | string

Title of the post.

Accessors

created

  • get created(): number
  • set created(created: number): void

id

  • get id(): string
  • set id(id: string): void

modified

  • get modified(): number
  • set modified(modified: number): void

Methods

toJSON

Generated using TypeDoc