From 218dc42aca7a9559c1ee85c36b6f195247b9981a Mon Sep 17 00:00:00 2001 From: Zankaria Date: Thu, 20 Feb 2025 22:29:00 +0100 Subject: [PATCH] post.php: fix matrix report url fragment --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index 0a7959c2..c2bd406d 100644 --- a/post.php +++ b/post.php @@ -221,7 +221,7 @@ function send_matrix_report( $end = strlen($post['body_nomarkup']) > $max_msg_len ? ' [...]' : ''; $post_content = mb_substr($post['body_nomarkup'], 0, $max_msg_len) . $end; - $text_body = $reported_post_url . ($post['thread'] ? "#$post_id" : '') . " \nReason:\n" . $report_reason . " \nPost:\n" . $post_content; + $text_body = $reported_post_url . ($post['thread'] ? "#$id" : '') . " \nReason:\n" . $report_reason . " \nPost:\n" . $post_content; $random_transaction_id = mt_rand(); $json_body = json_encode([