From 42d1e42c50a3e38311f705753509682da0611a3c Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 3 Apr 2022 23:48:17 +0200 Subject: [PATCH] newline --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index 437f45f0..5221128f 100644 --- a/post.php +++ b/post.php @@ -394,7 +394,7 @@ function handle_report(){ $trimmed_post = strlen($thread['body_nomarkup']) > 280 ? '[...]' : ''; $postcontent = mb_substr($thread['body_nomarkup'], 0, 280) . $trimmed_post; $reported_post_url = $config['domain'] . "/mod.php?/" . $board['dir'] . $config['dir']['res'] . ( $thread['thread'] ? $thread['thread'] : $id ) . ".html"; - $matrix_message = $reported_post_url . ($thread['thread'] ? '#' . $id : '') . ' \\n ' . $reason . '\\n ' . $postcontent . ' \\n '; + $matrix_message = $reported_post_url . ($thread['thread'] ? '#' . $id : '') . " \n" . $reason . " \n" . $postcontent . " \n"; $post_url = $config['matrix']['host'] . "/_matrix/client/r0/rooms/" . $config['matrix']['room_id'] . "/send/m.room.message?access_token=" . $config['matrix']['access_token']; $ch = curl_init($post_url); $post_data = json_encode(array(