- common_element_start('a', array('title' => $subs->fullname ||
- $subs->nickname,
- 'href' => $subs->profileurl,
- 'class' => 'subscription'));
- $avatar = $subs->getAvatar(AVATAR_STREAM_SIZE);
- common_element('img', array('src' => (($avatar) ? $avatar->url : DEFAULT_STREAM_AVATAR),
- 'width' => AVATAR_STREAM_SIZE,
- 'height' => AVATAR_STREAM_SIZE,
- 'class' => 'avatar stream'));
- common_element_end('a');
+ function define_subs(&$subs, &$profile) {
+ $subs->subscriber = $profile->id;
+ $subs->whereAdd('subscribed != ' . $profile->id);
+ }