12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class ThreadedNoticeListSubItem extends NoticeListItem
- {
- protected $root = null;
- function __construct(Notice $notice, $root, $out)
- {
- $this->root = $root;
- parent::__construct($notice, $out);
- }
- function avatarSize()
- {
- return AVATAR_STREAM_SIZE;
- }
- function showNoticeLocation()
- {
-
- }
- function showNoticeSource()
- {
-
- }
- function getAttentionProfiles()
- {
- $all = parent::getAttentionProfiles();
- $profiles = array();
- $rootAuthor = $this->root->getProfile();
- foreach ($all as $profile) {
- if ($profile->id != $rootAuthor->id) {
- $profiles[] = $profile;
- }
- }
- return $profiles;
- }
- function showEnd()
- {
- $threadActive = null;
- if (Event::handle('StartShowThreadedNoticeTailItems', array($this, $this->notice, &$threadActive))) {
-
- Event::handle('EndShowThreadedNoticeTailItems', array($this, $this->notice, &$threadActive));
- }
- parent::showEnd();
- }
- }
|