Skip to main content
Module

x/feoblog_client/mod.ts>protobuf.Post

a JavaScript client for feoblog written for Deno
Latest
class protobuf.Post
extends Message<Post>
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:

  1. /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.
  2. /u/{userID}/i/{itemID}/ should render a single user post, in full.

Constructors

new
Post(data?: PartialMessage<Post>)

Properties

optional
attachments: Attachments

File attachments that will be visible at ./files/*

body: string

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.

title: string

An optional plaintext title for the post. Titles should be <= 256 bytes. Servers may reject longer ones.

Static Properties

readonly
fields: FieldList
readonly
runtime
readonly
typeName: string

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