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:
273a3b2
)
add favor/disfavor to profile
author
Evan Prodromou
<evan@controlyourself.ca>
Thu, 18 Sep 2008 15:26:12 +0000
(11:26 -0400)
committer
Evan Prodromou
<evan@controlyourself.ca>
Thu, 18 Sep 2008 15:26:12 +0000
(11:26 -0400)
darcs-hash:
20080918152612
-5ed1f-
5ce8b0a834ffa50e04d6b47d1cac4c4b94f28e9e
.gz
actions/showstream.php
patch
|
blob
|
history
diff --git
a/actions/showstream.php
b/actions/showstream.php
index 9d871e41bfa241bb2346afbc5c4bcbb375acee7c..21d35201c8c0b6c46fa82842fc8e27711e6f8d01 100644
(file)
--- 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');