From b3effdf422aee4d355e0f9b4f7f5070c728556bc Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Sat, 27 Jan 2024 18:37:59 -0500 Subject: [PATCH] Fix a bug where we were not passing an integer but an array instead - I'm not sure how bans worked otherwise --- inc/mod/pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 35f12626..404fdbf6 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1860,7 +1860,7 @@ function mod_ban_post(string $board, $delete, $post_num, $token = false) { $query->bindValue(':id', $post_num); $query->bindValue(':body_nomarkup', sprintf("\n%s", utf8tohtml($_POST['message']))); $query->execute() or error(db_error($query)); - rebuildPost($post); + rebuildPost($post_num); modLog("Attached a public ban message to post #{$post_num}: " . utf8tohtml($_POST['message'])); buildThread($thread ? $thread : $post_num);