Previews links to this site's own dump, user and playlist pages, as parsePagePath reads them, from the database, for rich-content-service.ts. No request goes out, so this works even when the site runs on a private host that fetchWithTimeout refuses.

Variables

v
selfProvider: RichContentProvider

Comes before the generic provider, and claims what isSelfUrl accepts. A profile's tab previews as the profile. Its fetch rejects with a 404 APIException for a missing page, a private dump or a private playlist: the preview is stored in the linking dump, which others may see.

Usage

import * as mod from "api/remote/providers/self.ts";