Documentation
¶
Index ¶
Constants ¶
View Source
const MaxShortBodyLength = 128
MaxShortBodyLength is the maximum length of the short summary text
View Source
const Role = "Post"
Variables ¶
Functions ¶
func CanUserMutatePost ¶
func MakeShortBody ¶
MakeShortBody produces a short summary of a long piece of markdown content.
Types ¶
type Post ¶
type Post struct { ID PostID `json:"id"` Body string `json:"body"` Short string `json:"short"` Author Author `json:"author"` RootPostID PostID `json:"rootPostId"` ReplyTo optional.Optional[PostID] `json:"replyTo"` Reacts []react.React `json:"reacts"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` DeletedAt optional.Optional[time.Time] `json:"deletedAt"` }
Click to show internal directories.
Click to hide internal directories.