3 if (!defined('GNUSOCIAL')) { exit(1); }
5 class RepeatCommand extends Command
8 function __construct($user, $other)
10 parent::__construct($user);
11 $this->other = $other;
14 function handle($channel)
16 $notice = $this->getNotice($this->other);
19 $repeat = $notice->repeat($this->scoped->id, $channel->source());
20 $recipient = $notice->getProfile();
22 // TRANS: Message given having repeated a notice from another user.
23 // TRANS: %s is the name of the user for which the notice was repeated.
24 $channel->output($this->user, sprintf(_('Notice from %s repeated.'), $recipient->nickname));
25 } catch (Exception $e) {
26 $channel->error($this->user, $e->getMessage());