From 9e4c450eea1a48bfeded3a75571254b9a10ee38d Mon Sep 17 00:00:00 2001 From: Sarah Mei Date: Fri, 9 Sep 2011 06:55:15 -0700 Subject: [PATCH] Not all notifications are for posts :) --- app/models/notification.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/notification.rb b/app/models/notification.rb index bd172edf7..277903e2e 100644 --- a/app/models/notification.rb +++ b/app/models/notification.rb @@ -68,7 +68,7 @@ private def self.make_notification(recipient, target, actor, notification_type) - return nil if post_visiblity_is_hidden?(recipient, target) + return nil if target.is_a?(Post) && post_visiblity_is_hidden?(recipient, target) n = notification_type.new(:target => target, :recipient_id => recipient.id) n.actors = n.actors | [actor]