From cde12ec2325308c631cd2b2f0a6549e5519bbdf0 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Fri, 4 Nov 2011 19:37:21 -0700 Subject: [PATCH] MS DG; actually fix the bug --- app/models/notification.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/notification.rb b/app/models/notification.rb index bd61c7684..23b0223be 100644 --- a/app/models/notification.rb +++ b/app/models/notification.rb @@ -16,6 +16,8 @@ class Notification < ActiveRecord::Base end def self.notify(recipient, target, actor) + return false if recipient.person == actor #never notify someone if they are the actor, derp + if target.respond_to? :notification_type if note_type = target.notification_type(recipient, actor) if(target.is_a? Comment) || (target.is_a? Like)