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

hellthreadPolicy

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

Reject messages that tag too many participants.

This policy is useful to prevent unwanted notifications by limiting the number of "p" tags a kind 1 event may have. Only kind 1 events are impacted by this policy, since kind 3 events will commonly exceed this number.

@example
// Reject events with more than 15 mentions.
hellthreadPolicy(msg, { limit: 15 });
const hellthreadPolicy: Policy<Hellthread>;