123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- <?php
- if (!defined('STATUSNET'))
- {
- exit(1);
- }
- class AtomListNoticeFeed extends AtomNoticeFeed
- {
- private $list;
- private $tagger;
-
- function __construct($list, $cur = null, $indent = true) {
- parent::__construct($cur, $indent);
- $this->list = $list;
- $this->tagger = Profile::getKV('id', $list->tagger);
-
- $title = sprintf(_('Timeline for people in list %1$s by %2$s'), $list->tag, $this->tagger->nickname);
- $this->setTitle($title);
- $sitename = common_config('site', 'name');
- $subtitle = sprintf(
-
-
- _('Updates from %1$s\'s list %2$s on %3$s!'),
- $this->tagger->nickname,
- $list->tag,
- $sitename
- );
- $this->setSubtitle($subtitle);
- $avatar = $this->tagger->avatarUrl(AVATAR_PROFILE_SIZE);
- $this->setLogo($avatar);
- $this->setUpdated('now');
- $self = common_local_url('ApiTimelineList',
- array('user' => $this->tagger->nickname,
- 'id' => $list->tag,
- 'format' => 'atom'));
- $this->setId($self);
- $this->setSelfLink($self);
- $ao = ActivityObject::fromPeopletag($this->list);
- $this->addAuthorRaw($ao->asString('author'));
- $this->addLink($this->list->getUri());
- }
- function getList()
- {
- return $this->list;
- }
- }
|