- function get_channel() {
- $user = $this->user;
- $profile = $user->getProfile();
- $c = array('url' => common_local_url('userrss',
- array('nickname' =>
- $user->nickname)),
- 'title' => $user->nickname,
- 'link' => $profile->profileurl,
- 'description' => sprintf(_('Microblog by %s'), $user->nickname));
- return $c;
- }
-
- function get_image() {
- $user = $this->user;
- $profile = $user->getProfile();
- if (!$profile) {
- common_log_db_error($user, 'SELECT', __FILE__);
- $this->server_error(_('User without matching profile'));
- return NULL;
- }
- $avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
- return ($avatar) ? $avatar->url : NULL;
- }
+ # override parent to add X-SUP-ID URL
+
+ function init_rss($limit=0)
+ {
+ $url = common_local_url('sup', null, $this->user->id);
+ header('X-SUP-ID: '.$url);
+ parent::init_rss($limit);
+ }