Don't display artist wiki when it is deleted, and vice-versa

This commit is contained in:
BrokenEagle
2020-06-20 08:53:19 +00:00
parent fd6ba473a5
commit 33577e2186
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
<% if @artist.is_banned? && !policy(@artist).can_view_banned? %>
<p>The artist requested removal of this page.</p>
<% else %>
<% if @artist.wiki_page.present? %>
<% if @artist.wiki_page.present? && !@artist.wiki_page.is_deleted %>
<div class="prose">
<%= format_text(@artist.wiki_page.body, :disable_mentions => true) %>
</div>