Skip to content
Svartz v2.6.0

@svartz/plugin-annotations/server

5 exported symbols.

Interfaces

i AnnotationsServerOptionsWhat the server module receives: the options with every default filled in.
i ReportedCommentA comment as a report about it shows it to moderators, hidden or not.

Functions

f findCommentComment `id` of `vault`, hidden or not, from the annotations stored in the D1 binding named `database`: what the moderation plugin shows beside a report about it. `undefined` when there's no such comment, or no such binding.
f findComments`findComment` for each of `ids` in one query, by id, for a list of reports: ids with no such comment are absent, and so is every id when there's no such binding.

Variables

v defaultThe `annotations` server module: `server: { module, options }` with `AnnotationsServerOptions`.