Sorted Domain Keywords to new Policy Function. +1 Keyword Ban
parent
7720d63531
commit
616d76b104
17
policy.ts
17
policy.ts
|
@ -6,19 +6,24 @@ const kv = await Deno.openKv();
|
|||
export default class AppPolicy implements NPolicy {
|
||||
async call(event: NostrEvent): Promise<NostrRelayOK> {
|
||||
const policy = new PipePolicy([
|
||||
new KeywordPolicy([
|
||||
'NSFW sexual content',
|
||||
':nsfw:',
|
||||
'nsfw 18+ Sexual',
|
||||
':role_nsfw:']),
|
||||
/* Domain Keyword Bans */
|
||||
new KeywordPolicy([
|
||||
'bae.st/media',
|
||||
'scrolller.com/',
|
||||
'media.shota.house/',
|
||||
'1img.99img.biz/',
|
||||
'assets.bonito.cafe/',
|
||||
'naughtymag.com/',
|
||||
'nsfw 18+ Sexual',
|
||||
'NSFW sexual content',
|
||||
':nsfw:',
|
||||
':role_nsfw:']),
|
||||
'redgifs.com/watch',
|
||||
'naughtymag.com/'
|
||||
]),
|
||||
/* Porn/Sex Hashtags */
|
||||
new HashtagPolicy([
|
||||
'adult',
|
||||
'adult', /* May give false positives? */
|
||||
'ass',
|
||||
'assworship',
|
||||
'boobs',
|
||||
|
|
Loading…
Reference in New Issue