Prevent exception if upload feedback topic is not set in config

This commit is contained in:
Type-kun
2017-06-12 22:44:29 +05:00
parent 6947f39136
commit 04ef575704

View File

@@ -23,7 +23,7 @@
<%= render "post_disapprovals/counts", :disapprovals => post.disapprovals, :post => post %>
<% if CurrentUser.id == post.uploader_id %>
<% if CurrentUser.id == post.uploader_id && Danbooru.config.upload_feedback_topic.present? %>
<p>If you don't understand why your uploads keep getting deleted, you should ask on the <%= link_to "forum", forum_topic_path(Danbooru.config.upload_feedback_topic) %> for advice.</p>
<% end %>
</div>