Type Alias Post

Post: {
    alt_text?: string;
    ap_id: DbUrl;
    body?: string;
    community_id: CommunityId;
    creator_id: PersonId;
    deleted: boolean;
    embed_description?: string;
    embed_title?: string;
    embed_video_url?: DbUrl;
    featured_community: boolean;
    featured_local: boolean;
    id: PostId;
    language_id: LanguageId;
    local: boolean;
    locked: boolean;
    name: string;
    nsfw: boolean;
    published: string;
    removed: boolean;
    scheduled_publish_time?: string;
    thumbnail_url?: DbUrl;
    updated?: string;
    url?: DbUrl;
    url_content_type?: string;
}

A post.

Type declaration

  • Optionalalt_text?: string

    An optional alt_text, usable for image posts.

  • ap_id: DbUrl

    The federated activity id / ap_id.

  • Optionalbody?: string

    An optional post body, in markdown.

  • community_id: CommunityId
  • creator_id: PersonId
  • deleted: boolean

    Whether the post is deleted.

  • Optionalembed_description?: string

    A description for the link.

  • Optionalembed_title?: string

    A title for the link.

  • Optionalembed_video_url?: DbUrl

    A video url for the link.

  • featured_community: boolean

    Whether the post is featured to its community.

  • featured_local: boolean

    Whether the post is featured to its site.

  • id: PostId
  • language_id: LanguageId
  • local: boolean

    Whether the post is local.

  • locked: boolean

    Whether the post is locked.

  • name: string
  • nsfw: boolean

    Whether the post is NSFW.

  • published: string
  • removed: boolean

    Whether the post is removed.

  • Optionalscheduled_publish_time?: string

    Time at which the post will be published. None means publish immediately.

  • Optionalthumbnail_url?: DbUrl

    A thumbnail picture url.

  • Optionalupdated?: string
  • Optionalurl?: DbUrl

    An optional link / url for the post.

  • Optionalurl_content_type?: string