UNET API - v0.0.0
    Preparing search index...

    Type Alias FediverseItem

    A post from another server (the Fediverse). text is plain text; summary is a content warning to show the text behind.

    type FediverseItem = {
        uri: string;
        url: string | null;
        text: string;
        summary: string | null;
        sensitive: boolean;
        language: string | null;
        createdAt: string | null;
        editedAt: string | null;
        isReply: boolean;
        inReplyTo: string | null;
        author: {
            id: string;
            acct: string | null;
            username: string | null;
            host: string;
            displayName: string | null;
            avatarUrl: string | null;
            profileUrl: string | null;
        };
        attachments: {
            type: string;
            url: string;
            mediaType: string
            | null;
            description: string | null;
            width: number | null;
            height: number | null;
        }[];
        counts: { replies: number; likes: number; shares: number };
        viewer: { liked: boolean; announced: boolean };
        poll: FediversePoll | null;
        localPostId: number | null;
    }
    Index
    uri: string
    url: string | null
    text: string
    summary: string | null
    sensitive: boolean
    language: string | null
    createdAt: string | null
    editedAt: string | null
    isReply: boolean
    inReplyTo: string | null

    The address of the post it answers (when isReply): open it with api.fediversePost().

    author: {
        id: string;
        acct: string | null;
        username: string | null;
        host: string;
        displayName: string | null;
        avatarUrl: string | null;
        profileUrl: string | null;
    }

    id goes into the /fediverse/actors/:id calls.

    attachments: {
        type: string;
        url: string;
        mediaType: string | null;
        description: string | null;
        width: number | null;
        height: number | null;
    }[]
    counts: { replies: number; likes: number; shares: number }
    viewer: { liked: boolean; announced: boolean }
    poll: FediversePoll | null

    A poll, when the post has one: api.voteInFediversePoll().

    localPostId: number | null

    Set when the post is hosted on this server: open it with api.post(localPostId).