From 63f1fb4259402bf2b53097d2525878a2f6daa8c4 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 9 Jul 2008 15:52:38 -0400 Subject: store rendered content on save; display pre-rendered content darcs-hash:20080709195238-84dde-a5df98439faaf7058571b5e345f165adece9c7b8.gz --- actions/postnotice.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actions/postnotice.php') diff --git a/actions/postnotice.php b/actions/postnotice.php index 718ebdab0..d83ceb971 100644 --- a/actions/postnotice.php +++ b/actions/postnotice.php @@ -78,6 +78,7 @@ class PostnoticeAction extends Action { $notice->profile_id = $remote_profile->id; $notice->uri = $notice_uri; $notice->content = $content; + $notice->rendered = common_render_content($notice->content, $notice); if ($notice_url) { $notice->url = $notice_url; } @@ -87,6 +88,7 @@ class PostnoticeAction extends Action { common_server_error(_t('Error inserting notice'), 500); return false; } + common_save_replies($notice); common_broadcast_notice($notice, true); } return true; -- cgit v1.2.3-54-g00ecf