tag scripts: fix deleted thumbnails being removed.

Fix thumbnails being removed when using tag scripts on deleted thumbnails.
This commit is contained in:
evazion
2020-03-06 20:09:57 -06:00
parent f4da0a127d
commit d344005f8f

View File

@@ -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 %>