$toArg = $action->trimmed('notice_to');
$private = $action->boolean('notice_private');
+ if (empty($toArg)) {
+ return;
+ }
+
list($prefix, $value) = explode(':', $toArg);
switch ($prefix) {
case 'group':
break;
case 'profile':
$profile = Profile::staticGet('id', $value);
- $options['replies'] = $profile->getUri();
+ $options['replies'] = array($profile->getUri());
if ($private) {
$options['scope'] = Notice::ADDRESSEE_SCOPE;
}