mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 18:03:38 +08:00
FIX: description for 'uncategorized' category was blank
This commit is contained in:
parent
b4c5ff17a3
commit
f038f8f154
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user