Not all notifications are for posts :)

This commit is contained in:
Sarah Mei 2011-09-09 06:55:15 -07:00
parent 91eabf0fce
commit 9e4c450eea

View file

@ -68,7 +68,7 @@ private
def self.make_notification(recipient, target, actor, notification_type) 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, n = notification_type.new(:target => target,
:recipient_id => recipient.id) :recipient_id => recipient.id)
n.actors = n.actors | [actor] n.actors = n.actors | [actor]