FIX: Typo in NotificationsController#index not caught by tests.

This commit is contained in:
Guo Xiang Tan
2020-07-22 09:22:26 +08:00
parent 8dc3543134
commit 16961dee76
2 changed files with 28 additions and 4 deletions

View File

@ -25,7 +25,7 @@ class NotificationsController < ApplicationController
notifications = Notification.recent_report(current_user, limit)
changed = false
if notifications.present? && !(params.has_key?(:slient) || @readonly_mode)
if notifications.present? && !(params.has_key?(:silent) || @readonly_mode)
# ordering can be off due to PMs
max_id = notifications.map(&:id).max
changed = current_user.saw_notification_id(max_id)