mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 04:31:10 +08:00
FEATURE: Can create warnings for users via PM
This commit is contained in:
@ -98,7 +98,7 @@ class Notification < ActiveRecord::Base
|
||||
|
||||
def self.recent_report(user, count = nil)
|
||||
count ||= 10
|
||||
notifications = user.notifications.recent(count).includes(:topic).to_a
|
||||
notifications = user.notifications.recent(count).includes({:topic => :warning}).to_a
|
||||
|
||||
if notifications.present?
|
||||
notifications += user.notifications
|
||||
|
Reference in New Issue
Block a user