From 04ef575704644e622236f1b68ef5bd723597448b Mon Sep 17 00:00:00 2001 From: Type-kun Date: Mon, 12 Jun 2017 22:44:29 +0500 Subject: [PATCH] Prevent exception if upload feedback topic is not set in config --- app/views/posts/partials/show/_notices.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/posts/partials/show/_notices.html.erb b/app/views/posts/partials/show/_notices.html.erb index 27b664184..5b8c5aad5 100644 --- a/app/views/posts/partials/show/_notices.html.erb +++ b/app/views/posts/partials/show/_notices.html.erb @@ -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? %>

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.

<% end %>