summaryrefslogtreecommitdiff
path: root/lib/stream.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-09-08 16:27:17 -0400
committerEvan Prodromou <evan@prodromou.name>2008-09-08 16:27:17 -0400
commit5d3cd4feff1bf5e1b67c50062bfd56df8bd06ab1 (patch)
tree8a1ce5e1035b95bcf6b34851152b97c28cc61b8f /lib/stream.php
parentb4db40ce1df43adcf4c29c0d96b940100581cf75 (diff)
move fave form, float right
darcs-hash:20080908202717-84dde-4f89d50c07dfd16ff71f80c4115159eb8b01e9ce.gz
Diffstat (limited to 'lib/stream.php')
-rw-r--r--lib/stream.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/stream.php b/lib/stream.php
index 62d1cd67c..f41c125ca 100644
--- a/lib/stream.php
+++ b/lib/stream.php
@@ -76,6 +76,13 @@ class StreamAction extends Action {
# 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);
+ }
+ }
$avatar = $profile->getAvatar(AVATAR_STREAM_SIZE);
common_element_start('a', array('href' => $profile->profileurl));
common_element('img', array('src' => ($avatar) ? common_avatar_display_url($avatar) : common_default_avatar(AVATAR_STREAM_SIZE),
@@ -138,13 +145,6 @@ class StreamAction extends Action {
common_raw('&times;');
common_element_end('a');
}
- if ($user) {
- if ($user->hasFave($notice)) {
- common_disfavor_form($notice);
- } else {
- common_favor_form($notice);
- }
- }
common_element_end('p');
common_element_end('li');
}