summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-09 03:14:39 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-09 03:14:39 -0400
commita7db6216fad30dd07ce52bd687c670ea4f0ebb77 (patch)
treec08d9de421289b031c95f62937ba75bb15cba00f /actions
parent680738e05344ddad432a0a74c71c9c17e7779bf0 (diff)
fallback to newnotice on reply button, new button with mouseover
darcs-hash:20080709071439-84dde-f85f0e97f7c14bb77b7174f281e3e9f75c23cac1.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/newnotice.php7
1 files changed, 7 insertions, 0 deletions
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) {