mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: remove notifications on deleted topics from the stream
This commit is contained in:
parent
59a28bf5c1
commit
67f404d281
3 changed files with 18 additions and 7 deletions
|
@ -28,6 +28,7 @@ class NotificationsController < ApplicationController
|
|||
end
|
||||
|
||||
notifications = Notification.where(user_id: user.id)
|
||||
.visible
|
||||
.includes(:topic)
|
||||
.limit(60)
|
||||
.where('created_at < ?', params[:before])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue