tag scripts: fix deleted thumbnails being removed.
Fix thumbnails being removed when using tag scripts on deleted thumbnails.
This commit is contained in:
@@ -2,7 +2,7 @@ var post_id = <%= @post.id %>;
|
||||
var $post = $(`#post_${post_id}`);
|
||||
|
||||
<% if @post.valid? %>
|
||||
$post.replaceWith("<%= j PostPresenter.preview(@post) %>");
|
||||
$post.replaceWith("<%= j PostPresenter.preview(@post, show_deleted: true) %>");
|
||||
<% else %>
|
||||
Danbooru.error(`Post #${post_id}: <%= j @post.errors.full_messages.join("; ") %>`);
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user