]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use rendered text in profile page stream
authorEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 20:39:10 +0000 (16:39 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 20:39:10 +0000 (16:39 -0400)
darcs-hash:20080709203910-84dde-85a0a36009b13cb57e2db9f051aa5864fdb723a2.gz

actions/showstream.php

index 191e7e397f917cf58147f5a8d46f176835b98c32..12ffe95989478409c0ebbcfecee84c35e144fcc4 100644 (file)
@@ -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',