mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-29 01:34:31 +01:00
Improvements to showing post in ban
This commit is contained in:
parent
0ae3a583db
commit
9bde03ae7d
@ -634,7 +634,12 @@ function displayBan($ban) {
|
||||
$ban['post']['file'] = 'deleted';
|
||||
$ban['post']['thumb'] = false;
|
||||
}
|
||||
|
||||
if ($ban['post']['thread']) {
|
||||
$post = new Post($ban['post']);
|
||||
} else {
|
||||
$post = new Thread($ban['post'], null, false, false);
|
||||
}
|
||||
}
|
||||
// Show banned page and exit
|
||||
die(
|
||||
@ -645,7 +650,8 @@ function displayBan($ban) {
|
||||
'body' => Element('banned.html', array(
|
||||
'config' => $config,
|
||||
'ban' => $ban,
|
||||
'post' => isset($post) ? $post->build() : false
|
||||
'board' => $board,
|
||||
'post' => isset($post) ? $post->build(true) : false
|
||||
)
|
||||
))
|
||||
));
|
||||
|
@ -79,7 +79,7 @@
|
||||
|
||||
{% if post %}
|
||||
<hr>
|
||||
<p>You were banned for the following post:</p>
|
||||
<p>You were banned for the following post on {{ board.url }}:</p>
|
||||
{{ post }}
|
||||
<br>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user