mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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