summaryrefslogtreecommitdiff
path: root/classes/Command.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-10-04 13:45:19 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-10-04 13:45:19 -0400
commita5a35482122ad5bcb71b49670e775aead39abe8b (patch)
treec5cb607913bb2edc26230e09e5ad5e59019ed877 /classes/Command.php
parent0bd199f5cc9d936d12957006a698bed9d47604bb (diff)
check for notification flags in FavCommand
darcs-hash:20081004174519-5ed1f-1b9f8d1f12c895eacead8703cbfb088a135e810c.gz
Diffstat (limited to 'classes/Command.php')
-rw-r--r--classes/Command.php9
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.'));