projects
/
quix0rs-gnu-social.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66b1f3f
)
use getCurrentNotice() on profile page
author
Evan Prodromou
<evan@prodromou.name>
Wed, 9 Jul 2008 20:38:31 +0000
(16:38 -0400)
committer
Evan Prodromou
<evan@prodromou.name>
Wed, 9 Jul 2008 20:38:31 +0000
(16:38 -0400)
darcs-hash:
20080709203831
-84dde-
6f5f64f354a243ffefea8af8ef046d4bd0ec8e82
.gz
actions/showstream.php
patch
|
blob
|
history
diff --git
a/actions/showstream.php
b/actions/showstream.php
index d4f70fbd0097af840a3cd845a153868afe67a383..191e7e397f917cf58147f5a8d46f176835b98c32 100644
(file)
--- 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) {