DEV: Remove legacy user menu (#21308)

This commit is contained in:
Keegan George
2023-05-17 09:16:42 -07:00
committed by GitHub
parent 0c1efecddd
commit 082821c754
45 changed files with 148 additions and 2422 deletions

View File

@ -30,14 +30,10 @@ class NotificationsController < ApplicationController
include_reviewables = false
if SiteSetting.legacy_navigation_menu?
notifications = Notification.recent_report(current_user, limit, notification_types)
else
notifications =
Notification.prioritized_list(current_user, count: limit, types: notification_types)
# notification_types is blank for the "all notifications" user menu tab
include_reviewables = notification_types.blank? && guardian.can_see_review_queue?
end
notifications =
Notification.prioritized_list(current_user, count: limit, types: notification_types)
# notification_types is blank for the "all notifications" user menu tab
include_reviewables = notification_types.blank? && guardian.can_see_review_queue?
if notifications.present? && !(params.has_key?(:silent) || @readonly_mode)
if current_user.bump_last_seen_notification!