mirror of
https://github.com/discourse/discourse.git
synced 2026-08-27 05:37:29 -05:00
BUGFIX: regression, not handling nil count for recent report
This commit is contained in:
@@ -90,7 +90,7 @@ class Notification < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def self.recent_report(user, count = nil)
|
||||
|
||||
count ||= 10
|
||||
notifications = user.notifications.recent(count).includes(:topic).to_a
|
||||
|
||||
if notifications.present?
|
||||
|
||||
Reference in New Issue
Block a user