From 2deaeca133cb6cf768f7fb5c9c5b344043bd55d1 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 29 Nov 2019 02:04:14 +0000 Subject: [PATCH] use the right table --- ext/image_hash_ban/main.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/ext/image_hash_ban/main.php b/ext/image_hash_ban/main.php index 8f5fdee9..fec46ec0 100644 --- a/ext/image_hash_ban/main.php +++ b/ext/image_hash_ban/main.php @@ -11,15 +11,11 @@ class HashBanTable extends Table { parent::__construct($db, $token); - $this->table = "bans"; - $this->base_query = " - SELECT * FROM ( - SELECT bans.*, users.name AS banner - FROM bans JOIN users ON banner_id=users.id - ) AS tbl1 - "; + $this->table = "image_bans"; + $this->base_query = "SELECT * FROM image_bans"; - $this->size = 10; + $this->size = 100; + $this->limit = 1000000; $this->columns = [ new StringColumn("hash", "Hash"), new TextColumn("reason", "Reason"),