mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -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
|
object.uncategorized? ? I18n.t('category.uncategorized_description', locale: SiteSetting.default_locale) : object.description
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def description_excerpt
|
||||||
|
object.uncategorized? ? I18n.t('category.uncategorized_description', locale: SiteSetting.default_locale) : object.description_excerpt
|
||||||
|
end
|
||||||
|
|
||||||
def can_edit
|
def can_edit
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user