don't notify you favor your own notice

darcs-hash:20080918152823-5ed1f-bc7bea3305c39cfbc41f4a116b9a602ada556365.gz
This commit is contained in:
Evan Prodromou 2008-09-18 11:28:23 -04:00
parent bd828b9fc7
commit d73ed53535

View 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);
}