diff options
Diffstat (limited to 'classes/Command.php')
-rw-r--r-- | classes/Command.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/classes/Command.php b/classes/Command.php index ead6a56cc..e5dc59313 100644 --- a/classes/Command.php +++ b/classes/Command.php @@ -133,7 +133,14 @@ class FavCommand extends Command { return; } - mail_notify_fave($recipient, $this->user, $notice); + $other = User::staticGet('id', $recipient->id); + + if ($other && $other->id != $user->id) { + if ($other->email && $other->emailnotifyfav) { + mail_notify_fave($other, $this->user, $notice); + } + } + $this->user->blowFavesCache(); $channel->output($this->user, _('Notice marked as fave.')); |