summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/showstream.php')
-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) {