From 33b2e0f1895f981c13e3257badcd1210c3d86946 Mon Sep 17 00:00:00 2001
From: Eugen Rochko <eugen@zeonfederated.com>
Date: Sat, 21 Sep 2019 20:01:02 +0200
Subject: [PATCH] Fix "reason" prefix being shown with no reason for public
 blocks (#11908)

---
 app/views/about/more.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/about/more.html.haml b/app/views/about/more.html.haml
index 4b3035ee82..cba2fe657e 100644
--- a/app/views/about/more.html.haml
+++ b/app/views/about/more.html.haml
@@ -65,7 +65,7 @@
                   = t('about.unavailable_content_description.silenced') if domain_block.silence?
                   = t('about.unavailable_content_description.rejecting_media') if domain_block.reject_media?
 
-                - if display_blocks_rationale?
+                - if display_blocks_rationale? && domain_block.public_comment.present?
                   %strong= t('about.unavailable_content_description.reason')
                   = domain_block.public_comment
 
-- 
GitLab