Skip to content

Commit 5057dd2

Browse files
author
RedEnchilada
committed
Fix notice forms rendering differently than normal on profiles, which breaks AJAX submitting
1 parent 62f42bc commit 5057dd2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

actions/showstream.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,18 @@ function title()
105105
}
106106
}
107107

108-
function showNoticeForm()
108+
/*function showNoticeForm()
109109
{
110110
$notice_form = new NoticeForm($this, array('content' => "@{$this->profile->nickname} "));
111111
$notice_form->show();
112+
}*/
113+
114+
function noticeFormOptions()
115+
{
116+
$options = parent::noticeFormOptions();
117+
$options['content'] = "@{$this->profile->nickname} ";
118+
119+
return $options;
112120
}
113121

114122
function handle($args)

0 commit comments

Comments
 (0)