Prevent exception if upload feedback topic is not set in config
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user