]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
don't notify you favor your own notice
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 18 Sep 2008 15:28:23 +0000 (11:28 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 18 Sep 2008 15:28:23 +0000 (11:28 -0400)
darcs-hash:20080918152823-5ed1f-bc7bea3305c39cfbc41f4a116b9a602ada556365.gz

actions/favor.php

index 142d83ae1f0a180f9735d2221098ac4113ade78b..a5163efed66fb32cd103eacdc91d89550845c6e3 100644 (file)
@@ -80,7 +80,7 @@ class FavorAction extends Action {
 
        function notify($fave, $notice, $user) {
            $other = User::staticGet('id', $notice->profile_id);
-               if ($other) {
+               if ($other && $other->id != $user->id) {
                        if ($other->email && $other->emailnotifyfav) {
                                $this->notify_mail($other, $user, $notice);
                        }