import { Post } from "https://deno.land/x/feoblog_client@v0.7.0/private/protobuf/feoblog.ts";
Servers should render posts at at least two URLs:
- /u/{userID}/[?before={timestamp_ms_utc}] should render (some number of) the user's most recent posts before timestamp_ms_utc. These may be truncated.
- /u/{userID}/i/{itemID}/ should render a single user post, in full.
Constructors
new
Post(data?: PartialMessage<Post>)Properties
optional
attachments: AttachmentsFile attachments that will be visible at ./files/*
The body of the post, formatted in CommonMark markdown. Servers should suppress unsafe raw HTML blocks in the body. They may do so by rejecting the Item at the time of upload, or by choosing to render the Item without the offending HTML parts.
The allowed size of the body is effectively limited by the allowed size of the enclosing Item.
Static Methods
equals(a: Post | PlainMessage<Post> | undefined, b: Post | PlainMessage<Post> | undefined): boolean
fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Post
fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Post
fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Post