FIX: description for 'uncategorized' category was blank

FIX: description for ‘uncategorized’ category was blank

diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb
index 8151138..5eadbbc 100644
--- a/app/controllers/list_controller.rb
+++ b/app/controllers/list_controller.rb
@@ -331,7 +331,13 @@ class ListController < ApplicationController
 
     params[:category] = @category.id.to_s
 
-    @description_meta = @category.description_text
+    @description_meta = if @category.uncategorized?
+      I18n.t('category.uncategorized_description', locale: SiteSetting.default_locale)
+    else
+      @category.description_text
+    end
+    @description_meta = SiteSetting.site_description if @description_meta.blank?
+
     if !guardian.can_see?(@category)
       if SiteSetting.detailed_404
         raise Discourse::InvalidAccess

GitHub sha: f038f8f1

1 Like

Is that the only spot where the description of the “uncategorized” category was blank?

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/uncategorized-missing-meta-description/151686/4