check for notification flags in FavCommand
darcs-hash:20081004174519-5ed1f-1b9f8d1f12c895eacead8703cbfb088a135e810c.gz
This commit is contained in:
parent
0bd199f5cc
commit
a5a3548212
|
@ -133,7 +133,14 @@ class FavCommand extends Command {
|
||||||
return;
|
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();
|
$this->user->blowFavesCache();
|
||||||
|
|
||||||
$channel->output($this->user, _('Notice marked as fave.'));
|
$channel->output($this->user, _('Notice marked as fave.'));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user