mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06: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…
Reference in New Issue
Block a user