function isSelfUrl
isSelfUrl(url: URL): boolean

Checks whether url links to one of this site's own dump, user or playlist pages, by parsePagePath; an editor doesn't count. Matched on the host as well as the path: /@bob on some other site is someone else's page, not ours.

Parameters

url: URL

Return Type

boolean

Usage

import { isSelfUrl } from "api/lib/self-url.ts";