# 3) NULL to clear
function common_set_user($user) {
- if (is_null($nickname) && common_have_session()) {
+ if (is_null($user) && common_have_session()) {
unset($_SESSION['userid']);
return true;
} else if (is_string($user)) {
case 'openidsettings':
return common_path('settings/openid');
case 'newnotice':
- return common_path('notice/new');
+ if ($args && $args['replyto']) {
+ return common_path('notice/new?replyto='.$args['replyto']);
+ } else {
+ return common_path('notice/new');
+ }
case 'shownotice':
return common_path('notice/'.$args['notice']);
case 'xrds':