From 9b54cf6fff9c46b59f500505ab1749e2b8683a5d Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Wed, 29 Oct 2014 17:34:05 -0700 Subject: [PATCH] only register unseen notifications for other actioning sites --- models/site.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/site.rb b/models/site.rb index 91e1c255..d28b43ec 100644 --- a/models/site.rb +++ b/models/site.rb @@ -246,7 +246,7 @@ class Site < Sequel::Model end def unseen_notifications_dataset - events_dataset.where notification_seen: false + events_dataset.where(notification_seen: false).exclude(actioning_site_id: self.id) end def unseen_notifications_count