From a7db6216fad30dd07ce52bd687c670ea4f0ebb77 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 9 Jul 2008 03:14:39 -0400 Subject: fallback to newnotice on reply button, new button with mouseover darcs-hash:20080709071439-84dde-f85f0e97f7c14bb77b7174f281e3e9f75c23cac1.gz --- actions/newnotice.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'actions') diff --git a/actions/newnotice.php b/actions/newnotice.php index 0045d6c74..a7a3f8362 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -94,6 +94,13 @@ class NewnoticeAction extends Action { function show_form($msg=NULL) { $content = $this->trimmed('status_textarea'); + if (!$content) { + $replyto = $this->trimmed('replyto'); + $profile = Profile::staticGet('nickname', $replyto); + if ($profile) { + $content = "@$profile "; + } + } common_show_header(_t('New notice'), NULL, $content, array($this, 'show_top')); if ($msg) { -- cgit v1.2.3-54-g00ecf