diff options
author | Brion Vibber <brion@pobox.com> | 2010-06-26 10:17:36 -0400 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-06-26 10:17:36 -0400 |
commit | 696e4ba393c658d5b2e1fe46e1389bd7b2cfdb34 (patch) | |
tree | 45c4f1512599175afea67f8a68e1b3ad66cace97 /lib/atomgroupnoticefeed.php | |
parent | 72e486a3226c9101f33bd86f953dbb9650c19fd1 (diff) | |
parent | d9e56e15cc3174093fc994e524d1d9cf402ae8a3 (diff) |
Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x
Conflicts:
plugins/OpenID/openidserver.php (cleaned up mismatched comment)
Diffstat (limited to 'lib/atomgroupnoticefeed.php')
-rw-r--r-- | lib/atomgroupnoticefeed.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/atomgroupnoticefeed.php b/lib/atomgroupnoticefeed.php index c7c36af82..39a1fd456 100644 --- a/lib/atomgroupnoticefeed.php +++ b/lib/atomgroupnoticefeed.php @@ -96,4 +96,23 @@ class AtomGroupNoticeFeed extends AtomNoticeFeed return $this->group; } + function initFeed() + { + parent::initFeed(); + + $attrs = array(); + + if (!empty($this->cur)) { + $attrs['member'] = $this->cur->isMember($this->group) + ? 'true' : 'false'; + $attrs['blocked'] = Group_block::isBlocked( + $this->group, + $this->cur->getProfile() + ) ? 'true' : 'false'; + } + + $attrs['member_count'] = $this->group->getMemberCount(); + + $this->element('statusnet:group_info', $attrs, null); + } } |