From: Evan Prodromou Date: Thu, 18 Sep 2008 15:28:23 +0000 (-0400) Subject: don't notify you favor your own notice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d73ed53535845af2ed0c731f9dbf7997ec470536;p=quix0rs-gnu-social.git don't notify you favor your own notice darcs-hash:20080918152823-5ed1f-bc7bea3305c39cfbc41f4a116b9a602ada556365.gz --- diff --git a/actions/favor.php b/actions/favor.php index 142d83ae1f..a5163efed6 100644 --- a/actions/favor.php +++ b/actions/favor.php @@ -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); }