forked from GNUsocial/gnu-social
Change the title of NewnoticeAction if replying
This commit is contained in:
parent
98b65763b0
commit
196df7d8a4
@ -62,6 +62,9 @@ class NewnoticeAction extends FormAction
|
||||
// TRANS: Page title after sending a notice.
|
||||
return _('Notice posted');
|
||||
}
|
||||
if ($this->int('inreplyto')) {
|
||||
return _m('TITLE', 'New reply');
|
||||
}
|
||||
// TRANS: Page title for sending a new notice.
|
||||
return _m('TITLE','New notice');
|
||||
}
|
||||
@ -128,7 +131,7 @@ class NewnoticeAction extends FormAction
|
||||
Notice::maxContent()));
|
||||
}
|
||||
|
||||
$replyto = intval($this->trimmed('inreplyto'));
|
||||
$replyto = $this->int('inreplyto');
|
||||
if ($replyto) {
|
||||
$options['reply_to'] = $replyto;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user