Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AntiDuplication

import type { AntiDuplication } from "https://gitlab.com/soapbox-pub/strfry-policies/-/raw/develop/mod.ts";

Policy options for antiDuplicationPolicy.

interface AntiDuplication {
databaseUrl?: string;
minLength?: number;
ttl?: number;
}

§Properties

§
databaseUrl?: string
[src]

Database connection string. Default: sqlite:///tmp/strfry-anti-duplication-policy.sqlite3

§
minLength?: number
[src]

Note text under this limit will be skipped by the policy. Default: 50.

§
ttl?: number
[src]

Time in ms until a message with this content may be posted again. Default: 60000 (1 minute).