mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
Fix reply moving
This commit is contained in:
parent
affad5594e
commit
fd398f82ed
@ -1059,10 +1059,13 @@ function mod_move_reply($originBoard, $postID) {
|
||||
}
|
||||
}
|
||||
|
||||
// build index
|
||||
buildIndex();
|
||||
// build new thread
|
||||
buildThread($newID);
|
||||
|
||||
// trigger themes
|
||||
rebuildThemes($post['op'] ? 'post-thread' : 'post');
|
||||
rebuildThemes('post');
|
||||
// mod log
|
||||
modLog("Moved post #${postID} to " . sprintf($config['board_abbreviation'], $targetBoard) . " (#${newID})", $originBoard);
|
||||
|
||||
|
41
templates/mod/move_reply.html
Normal file
41
templates/mod/move_reply.html
Normal file
@ -0,0 +1,41 @@
|
||||
<form action="?/{{ board }}/move_reply/{{ post }}" method="post">
|
||||
<input type="hidden" name="token" value="{{ token }}">
|
||||
<table>
|
||||
<tr>
|
||||
<th>
|
||||
{% trans 'Post ID' %}
|
||||
</th>
|
||||
<td>
|
||||
>>>{{ config.board_abbreviation|sprintf(board) }}{{ post }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{% trans 'Target board' %}</th>
|
||||
<td>
|
||||
<ul style="list-style:none;padding:0">
|
||||
{% for targetboard in boards %}
|
||||
<li>
|
||||
<input type="radio" name="board" value="{{ targetboard.uri }}" id="ban-board-{{ targetboard.uri }}" {% if boards|count == 2 %}checked{% endif %}>
|
||||
<label style="display:inline" for="ban-board-{{ targetboard.uri }}">
|
||||
{{ config.board_abbreviation|sprintf(targetboard.uri) }} - {{ targetboard.title|e }}
|
||||
</label>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{% trans 'Target thread' %}</th>
|
||||
<td>
|
||||
<p>If you do not want to make the post into a new thread, please specify the thread you want to move the reply to:</p>
|
||||
<input type="text" name="target_thread"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<ul style="padding:0;text-align:center;list-style:none">
|
||||
<li><input type="submit" value="{% trans 'Move reply' %}"></li>
|
||||
</ul>
|
||||
</form>
|
||||
|
Loading…
Reference in New Issue
Block a user