Merge pull request #4529 from BrokenEagle/deleted-artist-wiki

Don't display artist wiki when it is deleted
This commit is contained in:
evazion
2020-06-23 02:51:53 -05:00
committed by GitHub
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>

View File

@@ -28,7 +28,7 @@
<%= format_text(@wiki_page.body) %>
<% end %>
<% if @wiki_page.artist %>
<% if @wiki_page.artist.present? && !@wiki_page.artist.is_deleted %>
<p><%= link_to "View artist", @wiki_page.artist %></p>
<% end %>