lemmy-js-client
    Preparing search index...

    Type Alias Post

    A post.

    type Post = {
        alt_text?: string;
        ap_id: DbUrl;
        body?: string;
        comments: number;
        community_id: CommunityId;
        creator_id: PersonId;
        deleted: boolean;
        downvotes: number;
        embed_description?: string;
        embed_title?: string;
        embed_video_url?: DbUrl;
        featured_community: boolean;
        featured_local: boolean;
        federation_pending: boolean;
        id: PostId;
        language_id: LanguageId;
        local: boolean;
        locked: boolean;
        name: string;
        newest_comment_time_at: string;
        nsfw: boolean;
        published_at: string;
        removed: boolean;
        report_count: number;
        scheduled_publish_time_at?: string;
        score: number;
        thumbnail_url?: DbUrl;
        unresolved_report_count: number;
        updated_at?: string;
        upvotes: number;
        url?: DbUrl;
        url_content_type?: string;
    }
    Index

    Properties

    alt_text?: string

    An optional alt_text, usable for image posts.

    ap_id: DbUrl

    The federated activity id / ap_id.

    body?: string

    An optional post body, in markdown.

    comments: number
    community_id: CommunityId
    creator_id: PersonId
    deleted: boolean

    Whether the post is deleted.

    downvotes: number
    embed_description?: string

    A description for the link.

    embed_title?: string

    A title for the link.

    embed_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.

    federation_pending: boolean

    If a local user posts in a remote community, the comment is hidden until it is confirmed accepted by the community (by receiving it back via federation).

    id: PostId
    language_id: LanguageId
    local: boolean

    Whether the post is local.

    locked: boolean

    Whether the post is locked.

    name: string
    newest_comment_time_at: string

    The time of the newest comment in the post.

    nsfw: boolean

    Whether the post is NSFW.

    published_at: string
    removed: boolean

    Whether the post is removed.

    report_count: number
    scheduled_publish_time_at?: string

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

    score: number
    thumbnail_url?: DbUrl

    A thumbnail picture url.

    unresolved_report_count: number
    updated_at?: string
    upvotes: number
    url?: DbUrl

    An optional link / url for the post.

    url_content_type?: string