mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: remove notifications on deleted topics from the stream
This commit is contained in:
@ -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])
|
||||
|
Reference in New Issue
Block a user