Change ReportNotifier SlackMessage format

This commit is contained in:
Benjamin Southall 2016-09-23 23:05:04 +09:00
parent 5d08f0f048
commit 59cc269cd7

View File

@ -185,7 +185,7 @@ if (isset($_POST['delete'])) {
} }
$postcontent = mb_substr($thread['body_nomarkup'], 0, 120) . '... _*(POST TRIMMED)*_'; $postcontent = mb_substr($thread['body_nomarkup'], 0, 120) . '... _*(POST TRIMMED)*_';
$slackmessage = 'Post: <' .$config['domain'] . "/mod.php?/" . $board['dir'] . $config['dir']['res'] . ( $thread['thread'] ? $thread['thread'] : $id ) . ".html" . ($thread['thread'] ? '#' . $id : '') . '> \n Post Content: ' . $postcontent . '\n Reason: ' . $reason . '\n'; $slackmessage = ' <' .$config['domain'] . "/mod.php?/" . $board['dir'] . $config['dir']['res'] . ( $thread['thread'] ? $thread['thread'] : $id ) . ".html" . ($thread['thread'] ? '#' . $id : '') . '> \n ' . $reason. '\n ' . $postcontent . '\n';
$slackresult = slack($slackmessage, $config['slack_channel']); $slackresult = slack($slackmessage, $config['slack_channel']);
} }