don't notify you favor your own notice
darcs-hash:20080918152823-5ed1f-bc7bea3305c39cfbc41f4a116b9a602ada556365.gz
This commit is contained in:
parent
bd828b9fc7
commit
d73ed53535
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user