From f038f8f1547ab5b5a98e28596ef50552180415c7 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Tue, 19 May 2020 18:45:29 +0530 Subject: [PATCH] FIX: description for 'uncategorized' category was blank --- app/controllers/list_controller.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index 81511387f73..5eadbbcf6d7 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