add favor/disfavor to profile

darcs-hash:20080918152612-5ed1f-5ce8b0a834ffa50e04d6b47d1cac4c4b94f28e9e.gz
This commit is contained in:
Evan Prodromou 2008-09-18 11:26:12 -04:00
parent 273a3b22bd
commit bd828b9fc7
1 changed files with 7 additions and 0 deletions

View File

@ -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');