diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-07-09 15:52:38 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-07-09 15:52:38 -0400 |
commit | 63f1fb4259402bf2b53097d2525878a2f6daa8c4 (patch) | |
tree | 6a9741199819612f2c39e351d98a5b3e8926b351 /actions/showstream.php | |
parent | 5793bbc8fd0d963547c15fc4f398660d445f5a5a (diff) |
store rendered content on save; display pre-rendered content
darcs-hash:20080709195238-84dde-a5df98439faaf7058571b5e345f165adece9c7b8.gz
Diffstat (limited to 'actions/showstream.php')
-rw-r--r-- | actions/showstream.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/actions/showstream.php b/actions/showstream.php index 406053531..eed63fab3 100644 --- a/actions/showstream.php +++ b/actions/showstream.php @@ -344,7 +344,14 @@ class ShowstreamAction extends StreamAction { if ($notice->find(true)) { # FIXME: URL, image, video, audio common_element_start('p', array('class' => 'notice_current')); - common_raw(common_render_content($notice->content, $notice)); + if ($notice->rendered) { + common_raw($notice->rendered); + } else { + # XXX: may be some uncooked notices in the DB, + # we cook them right now. This can probably disappear in future + # versions (>> 0.4.x) + common_raw(common_render_content($notice->content, $notice)); + } common_element_end('p'); } } |