function getAttachmentAccess
getAttachmentAccess(attachmentId: string): AttachmentAccess

Returns attachment attachmentId's type and who may see it. An attachment nothing links yet is public, so the editor can show it before the text is saved; its id is unguessable. One linked by a private dump or playlist, or by a comment on a private dump, is its owner's.

Parameters

attachmentId: string

Return Type

Throws

APIException

404 when there is no such attachment, or when the resource linking it has been deleted.

Usage

import { getAttachmentAccess } from "api/services/attachment-service.ts";