3 class FavCommand extends Command
7 function __construct($user, $other)
9 parent::__construct($user);
10 $this->other = $other;
13 function handle($channel)
15 $notice = $this->getNotice($this->other);
18 $fave = Fave::addNew($this->user->getProfile(), $notice);
19 } catch (Exception $e) {
20 $channel->error($this->user, $e->getMessage());
24 // TRANS: Text shown when a notice has been marked as favourite successfully.
25 $channel->output($this->user, _('Notice marked as fave.'));