summaryrefslogtreecommitdiff
path: root/actions/showstream.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-09-18 11:26:12 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-09-18 11:26:12 -0400
commitbd828b9fc7d1a9fa2a7fd157e81d0e50a82fac26 (patch)
treebcdc0d8067745a7df80ed604fb640984c26404a0 /actions/showstream.php
parent273a3b22bd4a5bbba53d4428562b6383b4957423 (diff)
add favor/disfavor to profile
darcs-hash:20080918152612-5ed1f-5ce8b0a834ffa50e04d6b47d1cac4c4b94f28e9e.gz
Diffstat (limited to 'actions/showstream.php')
-rw-r--r--actions/showstream.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/actions/showstream.php b/actions/showstream.php
index 9d871e41b..21d35201c 100644
--- a/actions/showstream.php
+++ b/actions/showstream.php
@@ -389,6 +389,13 @@ class ShowstreamAction extends StreamAction {
# XXX: RDFa
common_element_start('li', array('class' => 'notice_single',
'id' => 'notice-' . $notice->id));
+ if ($user) {
+ if ($user->hasFave($notice)) {
+ common_disfavor_form($notice);
+ } else {
+ common_favor_form($notice);
+ }
+ }
$noticeurl = common_local_url('shownotice', array('notice' => $notice->id));
# FIXME: URL, image, video, audio
common_element_start('p');