PostPresenter.preview: standardize on show_deleted: true.

Standardize on using `show_deleted: true` instead of `tags: "status:any"`
when rendering thumbnails and we want to show deleted thumbnails.

Also fixes it so that deleted thumbnails are shown when reordering pools
and favorite groups.
This commit is contained in:
evazion
2020-02-18 18:43:46 -06:00
parent 1244e02fe2
commit 72e56d8856
11 changed files with 12 additions and 12 deletions

View File

@@ -14,13 +14,13 @@
<span class="iqdb-posts-high-similarity">
<% @high_similarity_matches.each do |match| %>
<%= PostPresenter.preview(match["post"], tags: "status:any", similarity: match["score"], size: true) %>
<%= PostPresenter.preview(match["post"], show_deleted: true, similarity: match["score"], size: true) %>
<% end %>
</span>
<span class="iqdb-posts-low-similarity" style="display: none">
<% @low_similarity_matches.each do |match| %>
<%= PostPresenter.preview(match["post"], tags: "status:any", similarity: match["score"], size: true) %>
<%= PostPresenter.preview(match["post"], show_deleted: true, similarity: match["score"], size: true) %>
<% end %>
</span>
</div>