Store hashed ips. Display unique ip count in catalog

This commit is contained in:
Dominic Ferrando
2025-04-20 20:54:34 -04:00
parent 1148648aa4
commit c8b549115a
6 changed files with 63 additions and 19 deletions
+1
View File
@@ -27,6 +27,7 @@ CREATE TABLE IF NOT EXISTS posts (
body TEXT NOT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
media_path TEXT NOT NULL DEFAULT '',
ip_hash TEXT NOT NULL,
FOREIGN KEY (thread_id) REFERENCES threads(id) ON DELETE CASCADE
);