import { protobuf } from "https://deno.land/x/feoblog_client@v0.7.0/mod.ts";
const { Post } = protobuf;
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
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
fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Post
fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Post