From a3bec09864815886ae54b5535bce7e0428c5b604 Mon Sep 17 00:00:00 2001 From: Kibi Kelburton Date: Sat, 23 May 2026 23:09:24 +0200 Subject: [PATCH] update wordfilter func --- migrations/f0ckm_schema.sql | 8 ++ views/admin/wordfilter.html | 216 +++++++++++++++++++----------------- 2 files changed, 120 insertions(+), 104 deletions(-) diff --git a/migrations/f0ckm_schema.sql b/migrations/f0ckm_schema.sql index 2680d04..6905845 100644 --- a/migrations/f0ckm_schema.sql +++ b/migrations/f0ckm_schema.sql @@ -2831,4 +2831,12 @@ CREATE INDEX IF NOT EXISTS idx_dm_att_expires ON public.dm_attachments(expires ALTER TABLE private_messages ADD COLUMN IF NOT EXISTS edited_at timestamp with time zone DEFAULT NULL; +-- Wordfilter Table (Migration 009) +CREATE TABLE IF NOT EXISTS public.wordfilter ( + id SERIAL PRIMARY KEY, + word VARCHAR(255) UNIQUE NOT NULL, + replacement VARCHAR(255) NOT NULL, + created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW() +); + \unrestrict RMNKNzVQLV2ZcwmM3bmhglTot5nRoju9FmRyi3eUMfNy6iJUBfHRIgXnbrpJikG diff --git a/views/admin/wordfilter.html b/views/admin/wordfilter.html index 6270a7b..bea1792 100644 --- a/views/admin/wordfilter.html +++ b/views/admin/wordfilter.html @@ -16,7 +16,7 @@

Create Wordfilter Rule

-
+
@@ -28,121 +28,129 @@ -
+
+ + +
+ + + + + + + + + + + + +
Original WordReplacementCreatedActions
+ +
+ + + // Initialize view + loadRules(); + })(); +