3 if (!defined('GNUSOCIAL')) { exit(1); }
6 * Placeholder for showing repeats...
8 class ThreadedNoticeListRepeatsItem extends NoticeListActorsItem
10 function getProfiles()
12 $repeats = Notice::listGet('repeat_of', array($this->notice->getID()));
15 foreach ($repeats[$this->notice->getID()] as $rep) {
16 $profiles[] = $rep->profile_id;
22 function magicList($items)
24 if (count($items) > 4) {
25 return parent::magicList(array_slice($items, 0, 3));
27 return parent::magicList($items);
31 function getListMessage($count, $you)
33 if ($count == 1 && $you) {
34 // darn first person being different from third person!
35 // TRANS: List message for notice repeated by logged in user.
36 return _m('REPEATLIST', 'You repeated this.');
37 } else if ($count > 4) {
38 // TRANS: List message for when more than 4 people repeat something.
39 // TRANS: %%s is a list of users liking a notice, %d is the number over 4 that like the notice.
40 // TRANS: Plural is decided on the total number of users liking the notice (count of %%s + %d).
41 return sprintf(_m('%%s and %d other repeated this.',
42 '%%s and %d others repeated this.',
46 // TRANS: List message for repeated notices.
47 // TRANS: %%s is a list of users who have repeated a notice.
48 // TRANS: Plural is based on the number of of users that have repeated a notice.
49 return sprintf(_m('%%s repeated this.',
58 $this->out->elementStart('li', array('class' => 'notice-data notice-repeats'));
63 $this->out->elementEnd('li');