Not all notifications are for posts :)
This commit is contained in:
parent
91eabf0fce
commit
9e4c450eea
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue