mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FEATURE: Can create warnings for users via PM
This commit is contained in:
parent
a8e4c4caa1
commit
b0bfc1f93f
37 changed files with 243 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue