mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 11:55:32 +08:00
FIX: Show uncategorized description on categories page
This commit is contained in:
parent
fe7bb62387
commit
f7a7263164
@ -51,6 +51,10 @@ class BasicCategorySerializer < ApplicationSerializer
|
||||
object.uncategorized? ? I18n.t('category.uncategorized_description', locale: SiteSetting.default_locale) : object.description
|
||||
end
|
||||
|
||||
def description_excerpt
|
||||
object.uncategorized? ? I18n.t('category.uncategorized_description', locale: SiteSetting.default_locale) : object.description_excerpt
|
||||
end
|
||||
|
||||
def can_edit
|
||||
true
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user