summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-09 16:38:31 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-09 16:38:31 -0400
commite04f24a3f8bb2b3a5941029f8dbf45bbb54053bb (patch)
treedb0fe98a9e7ed774892e4e6a95a0653a0f7b0da4 /actions
parent66b1f3f233f8c481fa7b37a46aecf9c7bb2f60a0 (diff)
use getCurrentNotice() on profile page
darcs-hash:20080709203831-84dde-6f5f64f354a243ffefea8af8ef046d4bd0ec8e82.gz
Diffstat (limited to 'actions')
-rw-r--r--actions/showstream.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index d4f70fbd0..191e7e397 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -336,12 +336,9 @@ class ShowstreamAction extends StreamAction {
common_element('h2', NULL, _t('Currently'));
- $notice = DB_DataObject::factory('notice');
- $notice->profile_id = $profile->id;
- $notice->orderBy('created DESC');
- $notice->limit(0, 1);
-
- if ($notice->find(true)) {
+ $notice = $profile->getCurrentNotice();
+
+ if ($notice) {
# FIXME: URL, image, video, audio
common_element_start('p', array('class' => 'notice_current'));
if ($notice->rendered) {