summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-09 16:39:10 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-09 16:39:10 -0400
commitcd0049aceec1879637464690dda04f6c5f81f4f0 (patch)
tree2e7a84f9e352370fc33ae9e952c0f9b9361ca404 /actions/showstream.php
parente04f24a3f8bb2b3a5941029f8dbf45bbb54053bb (diff)
use rendered text in profile page stream
darcs-hash:20080709203910-84dde-85a0a36009b13cb57e2db9f051aa5864fdb723a2.gz
Diffstat (limited to 'actions/showstream.php')
-rw-r--r--actions/showstream.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index 191e7e397..12ffe9598 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -361,7 +361,14 @@ class ShowstreamAction extends StreamAction {
$noticeurl = common_local_url('shownotice', array('notice' => $notice->id));
# FIXME: URL, image, video, audio
common_element_start('p');
- 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');
common_element_start('p', array('class' => 'time'));
common_element('a', array('class' => 'permalink',