mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +08:00
UX: Changes in top categories of hamburger menu (#6200)
This commit is contained in:
@ -2,8 +2,6 @@ require_dependency 'new_post_manager'
|
||||
|
||||
class CurrentUserSerializer < BasicUserSerializer
|
||||
|
||||
MAX_TOP_CATEGORIES_COUNT = 6.freeze
|
||||
|
||||
attributes :name,
|
||||
:unread_notifications,
|
||||
:unread_private_messages,
|
||||
@ -169,7 +167,7 @@ class CurrentUserSerializer < BasicUserSerializer
|
||||
WHEN notification_level = 4 THEN 3
|
||||
END")
|
||||
.pluck(:category_id)
|
||||
.slice(0, MAX_TOP_CATEGORIES_COUNT)
|
||||
.slice(0, SiteSetting.hamburger_menu_categories_count)
|
||||
end
|
||||
|
||||
def dismissed_banner_key
|
||||
|
Reference in New Issue
Block a user