Interface TrendLink

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

interface TrendLink {
    authorName?: null | string;
    authorUrl?: null | string;
    blurhash: string;
    description: string;
    embedUrl: string;
    height?: null | number;
    history: mastodon.v1.TagHistory[];
    html?: null | string;
    image?: null | string;
    language?: string;
    providerName?: null | string;
    providerUrl?: null | string;
    title: string;
    type: PreviewCardType;
    url: string;
    width?: null | number;
}

Hierarchy (view full)

Properties

authorName?: null | string

The author of the original resource.

authorUrl?: null | string

A link to the author of the original resource.

blurhash: string

Blurhash

description: string

Description of preview.

embedUrl: string

Used for photo embeds, instead of custom html.

height?: null | number

Height of preview, in pixels.

html?: null | string

HTML to be used for generating the preview card.

image?: null | string

Preview thumbnail.

language?: string
providerName?: null | string

The provider of the original resource.

providerUrl?: null | string

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?: null | number

Width of preview, in pixels.