masto
    Preparing search index...

    Interface PreviewCard

    Represents a rich preview card that is generated using OpenGraph tags from a URL.

    interface PreviewCard {
        authorName?: string | null;
        authors: PreviewCardAuthor[];
        authorUrl?: string | null;
        blurhash: string;
        description: string;
        embedUrl: string;
        height?: number | null;
        html?: string | null;
        image?: string | null;
        language?: string;
        providerName?: string | null;
        providerUrl?: string | null;
        title: string;
        type: keyof PreviewCardRegistry;
        url: string;
        width?: number | null;
    }

    Hierarchy (View Summary)

    Index

    Properties

    authorName?: string | null

    The author of the original resource.

    Use authors instead

    Fediverse account of the authors of the original resource.

    authorUrl?: string | null

    A link to the author of the original resource.

    Use authors instead

    blurhash: string

    Blurhash

    description: string

    Description of preview.

    embedUrl: string

    Used for photo embeds, instead of custom html.

    height?: number | null

    Height of preview, in pixels.

    html?: string | null

    HTML to be used for generating the preview card.

    image?: string | null

    Preview thumbnail.

    language?: string
    providerName?: string | null

    The provider of the original resource.

    providerUrl?: string | null

    A link to the provider of the original resource.

    title: string

    Title of linked resource.

    The type of the preview card.

    url: string

    Location of linked resource.

    width?: number | null

    Width of preview, in pixels.